.net标准化查询中使用like的用法

.net的标准化查询确实是个好东西,生了很多事。

使用like的时候语句应该这样写:

“Select * From table Where field like ’%‘+@field+’%‘”;

而不是

“Select * From table Where field like %@field%”

不知道具体原因,有知道的可以告知,谢谢。

 
原文地址:https://www.cnblogs.com/acles/p/1962324.html