sql语句写的不对。要用动态的SQL语句要么用带参数的。要么这样也可以。 string M =5;'select * from CtrFunc_MTU WHERE FunctionId ='+ M;SQL语句是以字符串的形式传送的
sql语句不支持啊,,你必须写成FunctionId = 5