当前位置: 代码迷 >> Sql Server >> 有没有这样的SQL语句?该如何处理
  详细解决方案

有没有这样的SQL语句?该如何处理

热度:17   发布时间:2016-04-27 21:33:03.0
有没有这样的SQL语句?
select   *   from   tbS_stock   where   fullname   like   ' "   +   Text3.Text   +   " '+   '% 'or   spell   like   ' "   +   Text3.Text   +   " '+ '% '


很明显,就想问问有没有如spell   like   ' '这样的SQL语句,如果有,是拿来干嘛的?

谢谢

------解决方案--------------------
噢,在sql里是这样的格式:
select *
from tbS_stock
where fullname like 'field1% ' or spell like 'field2% '

lz的问题的回答是肯定的,用处就是找到表中spell字段满足以 'field2 '开头的所有记录
  相关解决方案