日期:2014-05-20  浏览次数:20901 次

一个很菜鸟级的问题!
我有一个textbox想做做个迷糊查询

select   *   from   tb   where   name   like   '% ' "+this.textbox.text+ " '% '
为什么会包错呢!

------解决方案--------------------
"select * from tb where name like '% "+this.textbox.text+ "% ' "


*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)

最新版本:20070130

http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
------解决方案--------------------
大哥,你真是迷糊啊。。。
string test = "SELECT * FROM tb WHERE name LIKE '% " + this.textbox.Text + "% ' ";
------解决方案--------------------

string text = "select * from tb where name like '% "+this.textbox.text+ "% ' ";

再有问题,把错也写上来