.net的标准化查询确实是个好东西,生了很多事。
使用like的时候语句应该这样写:
“Select * From table Where field like ’%‘+@field+’%‘”;
而不是
“Select * From table Where field like %@field%”
不知道具体原因,有知道的可以告知,谢谢。
posted @ 2011-02-23 15:12 acles 阅读(46) 评论(0) 编辑
.net的标准化查询确实是个好东西,生了很多事。
使用like的时候语句应该这样写:
“Select * From table Where field like ’%‘+@field+’%‘”;
而不是
不知道具体原因,有知道的可以告知,谢谢。