如何查询字段不包含 'a','b','c'...的记录????比如:'a123'、'b123'、'c123'、都不符合。。
解决方案 »
- SQL连接数据库时,在服务器名一栏中输入一个点,为什么连接不进去
- SQL提示:将varchar值转换为数据类型为 int 的列时发生语法错误
- 很急!!!为什么利用存储过程,取得的记录集就不支持AbslutePage属性
- 在一個表中如何將一個字段型的字段的數據復製到一個數據型的字段中
- 跪求、sql的存储过程自动产生箱标签问题
- SQL SERVER 2005安装过程蓝屏
- 统计所有分类每个月的最大数的累加值?
- C#调用DTS包进行SQL到EXCEL表格的的数据导出导出实例
- 急!无法找到SQLSERVER服务
- Oracle的 存储过程的问题
- 联接查询的问题,在线等
- 在group by 中指定各个字段不同查询条件的问题
from tb
where charindex('a',字段)<0 and
charindex('b',字段)<0 and
charindex('c',字段)<0 and
from tb
where charindex('a',col)=0 and charindex('b',col)=0 and charindex('c',col)=0
from tb
where patindex('%[abc]%',col)=0
from tb
where charindex('a',字段)=0 and
charindex('b',字段)=0 and
charindex('c',字段)=0
汗....不好意思
from tb
where col not like '%a%' or
col not like '%b%' or
col not like '%c%'