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

exec sp_msforeachtable  @Command1 ='truncate table ?'

删除所有数据表:

exec sp_msforeachtable 'delete   N''?'''

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-09-17
  • 2021-08-17
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2021-09-13
  • 2021-08-10
  • 2022-12-23
  • 2022-01-17
  • 2022-01-31
  • 2021-09-23
相关资源
相似解决方案