日期:2014-05-18  浏览次数:20312 次

关于模糊删除数据
有一个表

如果我想删除表里面     标题中不包含   "哈哈 "     是其他数据,

sql怎么写啊

谁知道啊

------解决方案--------------------
select * from 表名
where not exists(select 1 from 表名 where charindex( '哈哈 ',标题)> 0)
------解决方案--------------------
DELETE FROM Spzs WHERE charindex( '挖掘机 ', cmpc) = 0