SQl2000 刪除所有表资料

一条SQL删除所有表中数据
EXECUTE sp_msforeachtable 'delete from ?'
或者
EXECUTE sp_msforeachtable 'truncate table ?'

你可能感兴趣的:(sql)