首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

帮小弟我看一下这个SQL语句错在哪里 string strSql= "select * from aa where FuName like '% @F

2012-03-12 
帮我看一下这个SQL语句错在哪里 string strSql select * from aa where FuName like % @FuName % orde

帮我看一下这个SQL语句错在哪里 string strSql= "select * from aa where FuName like '% @FuName %' order by id desc";
帮我看一下这个SQL语句错在哪里   string   strSql=   "select   *   from   aa   where   FuName   like   '%   @FuName   % '   order   by   id   desc ";

帮我改一下吧

[解决办法]
@
[解决办法]
'% '+@FuName + '% '
[解决办法]
string strSql= "select * from aa where FuName like '% "+@FuName+ " % ' order by id desc ";

[解决办法]
'% ”+@FuName +“% '
[解决办法]
string strSql= "select * from aa where FuName like '% '+@FuName+ '% ' order by id desc ";


[解决办法]
打开SQL 查询分析器,把你的这段sql语句copy上去,编译,自己找错(备注:变量的地方,自己随意写个测试值,引号去掉,只要编译没错就行了)

热点排行