如果TRUNCATE 不成功,還可以用DELETE 刪除所有資料 exec ('delete from ' + @tablename + ' where 1=1');. -- 使用DELETE 不會將自動編號的欄位歸 ...
確定! 回上一頁