exec('select Id,DirectName,DirectIntro,DirectLeadNO from DisciplineDirectInfo where '+@fild+ '=''' +@valu+'''')
单引号 字符串啊,两个单引号在字符串中 算是一个单引号 。
exec('select Id,DirectName,DirectIntro,DirectLeadNO from DisciplineDirectInfo where '+@fild+ ' like ''%' +@valu+'%''')
22,301
社区成员
121,734
社区内容
加载中
试试用AI创作助手写篇文章吧