【求解!!!!】 有一table:fname idsaa 1,12,23,25,2,41,42bb 2,32,12cc 32,1ids字段的值是由几个id组成,且用逗号分开请问如何筛选出当 ids 含有 2 的行呀?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from [table]where charindex(',2,',','+ids+',')>0 select * from table where charindex('2',ids)>0 select * from tb where charindex(',2,',','+ids+',')>0 select * from table where charindex(',2,',','+ids+',')>0 或者:select * from tb where ','+ids+',' like '%,2,%' 哦,myGod,可以结贴了咔咔。。 高手来看rand() 关于表之间的连接 关于otl的问题,恳求各位给个答案 求助:在线帮助系统数据库部分的设计和实现 这个SQL怎么写? 请教sql语句 请问笔记本win7旗舰版可以装sqlserver2008或者2005哪个版本? 再次救命!老板要开除我了! 关于一个简单触发器的困惑?大家来看看 这个函数太慢了,能不能有优化方案? 装sql2005客户端与服务端有什么区别吗? 问个累加求和的问题
from [table]
where charindex(',2,',','+ids+',')>0