关于sql:我们可以在where子句中使用truncate吗?


Can we use truncate with where clause?

本问题已经有最佳答案,请猛点这里访问。

我知道我们不能在where子句中使用truncate ..但是我想通过使用truncate保持其他记录照常删除表中的某些记录...

我们能做到吗?


No, TRUNCATE is all or nothing. You can do a DELETE FROM

WHERE but this loses the speed advantages of TRUNCATE.

此线程是一本好书:)