使用like的时候语句应该这样写:
“Select * From table Where field like ’%‘+@field+’%‘”;
而不是
“Select * From table Where field like %@field%”.
知道是识别不了%.具体原因不知道..但是特别要感谢这个博主..为了写这个的正确行使,我花了1个小时在教头烂耳!!!!55555555555
我在找到这个的时候,我的搜索功力忽地有上升了一个境界..囧..