declare @str varchar(8000) set @str= ' ' select @str=@str+ 'truncate table '+name+char(10) from sysobjects where xtype= 'U ' exec(@str) 相关文章: