首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

hyqwan11112/ 


共212个网摘 [ 1  2  3  4  5  6 ... 8 ]  下一页  |  访问hyqwan11112的个人空间

sqlserver--过滤字段

hyqwan11112收录,时间:2008-10-1 14:49:52 | 相关网摘我也收藏

if object_id('ta')is not null drop table ta go create table ta (ID int identity(1,1),content varchar(15))--脏字表 insert ta(content) select 'Fuck' insert ta(content) select 'SB' insert ta(content) select '操你' insert ta(content) select '日' if object_id('tb')is not null drop table tb go create table tb (ID int identity(1,1),content varchar(15))--正常表 declare @str varchar(20) declare @str2 varchar(20) set @str2='你好' set @str='Fuck you' insert tb(content) select @str where not exists(select 1 from ta a where charindex('' a.content '',@str)>0 ) insert tb(content) select @str2 where not exists(select 1 from ta a where charindex('' a.content '',@str2)>0 ) select * from tb



共212个网摘 [ 1  2  3  4  5  6 ... 8 ]  下一页

hyqwan11112/相关标签



    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved