我写了个简单的,就是用  set @j = charindex('update',@papastr) 如果有update/ delete /INSERT INTO 字符就返回为空,没有就返回papastr,想问问大家有写的,是怎么做的。