不包含怎么写啊 我们平常用的包含是 like '%字符%',现在我要查询不包含某个内容的值怎么查,是模糊的, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tb where 字段 not like '%字符%'或select * from tb where charindex('字符',字段)=0 col not like '%字符%'charindex('字符',col) = 0 頂. not like 效率比較低. 用not like 如:select * from tab where id not like '%a%' not like '%字符%完全正确 not like charindexnot in其实用not in也可以,但最好用charindex sqlserver连接服务器失败 关于sql server 的安装问题 pwdencrypt函数的问题 convert 转换的问题 请问下,对于存过过程查询出来的数据怎么统计行数,谢谢。 SQL Server 调优工具 一表数据我打算就显示 有数据的内容该如何写sql 如何对记录行进行加锁? 高手请进! VFP--打开表的时候,系统提示 "此数据源要是一个变量调用",是怎么回事? 表的一个字段可以是这个表的主键同时又是外键吗? 求SQL语句 急!!!
或
select * from tb where charindex('字符',字段)=0
charindex('字符',col) = 0
如:select * from tab where id not like '%a%'
完全正确
charindex
not in
其实用not in也可以,但最好用charindex