SQL 清除数据库中所有表的数据(保留结构) 使用游标和truncate语句: declare c cursor for select NAME from sysobjects where xtype='U' declare @t varchar(200) open c fetch next from c into &