VS中 cs代码
string condition = "and title like '%" + title + "%'"; //title为变量
VS中dataset中

select * from tbName where title like

sql查询分析器

select * from tbName where title like '%临街%'

存储过程  


exec sp_tt ' title like ''%临街%'' ' --调用存储过程(附加sql语句)

避免like 查错

posted on 2014-02-10 14:21  御不凡  阅读(176)  评论(0编辑  收藏  举报