现在的位置: 首页 > 综合 > 正文

Sql Server中清空所有数据表中的记录

2012年07月10日 ⁄ 综合 ⁄ 共 105字 ⁄ 字号 评论关闭

清空所有数据表中的记录:

exec sp_msforeachtable  @Command1 ='truncate table ?'

删除所有数据表:

exec sp_msforeachtable 'delete   N''?'''

抱歉!评论已关闭.