dnt 删除不良数据


/*author: liulftime: 14:43 2009-2-1function 删除那些不良数据的主要两个表ex: exec _p_DeleteErrorData '%瑞德蓝%','' delete from ccinadm.dnt_users where username = 'q873039089  '
select * from ccinadm.dnt_topics*/ALTER     proc [dbo].[_p_DeleteErrorData]@kw varchar(1000),@username varchar(50)asbegin delete from ccinadm.dnt_posts1 where title like '%'+@kw+'%' delete from ccinadm.dnt_topics where title like '%'+@kw+'%' delete from ccinadm.dnt_topics where poster = @username delete from ccinadm.dnt_users where username = @username end




你可能感兴趣的:(删除)