select * from t
where 列 like '%''%'
and 列 not like '%''''%'
where 列 like '%''%'
and 列 not like '%''''%'
解决方案 »
- 请教同一2000服务器实例中调用另一数据库的存储过程并且获取返回值的处理方法。
- 简单问题,列转行
- 将查询结果导出到EXCEL
- 我个人觉得书中的这个数据库建立错了
- 执行这个语句错在哪里呢?
- 我要得到以aid分组,price最小的一条记录,aid相同的情况只得一条 ?
- 求高手 看看我的问题 登录SQL2005时候遇到的问题 链接不上啊
- 求教WHERE CURRENT OF 的使用方法
- MS SQL 2000 无法备份, 目的在于想把本地得数据库 导到网上
- 触发器本身要处理的数据多就出现插不进数据,或者插进了却没起作用,并有时出现超时,请问怎样手动设置或者通过命令设置超时时间?
- 帮忙解决一个多字段大数据量的SQL表查询的问题
- 用kill为何报错了?
where charindex('''',col)>0
and charindex('''''',col)=0
(g1 char(2),
g2 varchar(10))insert into #t1
select 'a','''adfasdf'
union all select 'b','b''c'
union all select 'c','cd'''
union all select 'd','a''''b'select *
from #t1
where g2='b''c'select * from #t1
where g2 like '%''%'
and g2 not like '%''''%'
drop table #t1
============
结果:(所影响的行数为 4 行)g1,g2
b ,b'c(所影响的行数为 1 行)g1,g2
a ,'adfasdf
b ,b'c
c ,cd'(所影响的行数为 3 行)