如何批量刪除前綴相同的表數據

需求貼:http://bbs.csdn.net/topics/390527148?page=1 例如數據庫中存在tmp_1001  tmp_1002 tmp_1003 ..... tmp_1203 等名字的表 如何實現將全部表名爲」tmp_「 開頭的表 中的數據都刪除 用 delete 的方式(記錄日誌) exec sp_MSforeachtable 'Delete from ? where o
相關文章
相關標籤/搜索