摘要: USE [Discuz]GODECLARE @what varchar(800)SET @what='标签' --要搜索的字符串DECLARE @sql varchar(8000)DECLARE TableCursor CURSOR LOCAL FORSELECT sql='IF EXISTS ( SELECT 1 FROM ['+o.name+'] WHERE ['+c.name+'] LIKE ''%'+@what+'%'' ) PRINT ''所在的表及字段:[' 阅读全文
posted @ 2011-06-22 10:23 itor 阅读(1304) 评论(0) 推荐(0) 编辑