摘要:
DECLARE @tablename varchar(50)DECLARE @type varchar(50)DECLARE @truncatesql varchar(255)DECLARE TrCun_Cursor CURSOR FORselect [name],[type] from sysobjects where type = 'U' or type='V'--有条件的清空表 name<>'不想清空的表名'--OPEN TrCun_CursorFETCH TrCun_Cursor INTO @tablename,@typeWH 阅读全文