SQL批量刪除語句,SQL刪除全部數據

  EXECUTE sp_msforeachtable 'delete from ?' 或者 EXECUTE sp_msforeachtable 'truncate table ?'spa     //定義遊標 日誌 DECLARE tables_cursor CURSOR blog FOR 索引 SELECT name FROM sysobjects WHERE type = 'U' //選擇用
相關文章
相關標籤/搜索