Sql server 2008 如何使用SQL Server 2008截断表?
我想截断表,但当列值等于Sql server 2008 如何使用SQL Server 2008截断表?,sql-server-2008,Sql Server 2008,我想截断表,但当列值等于NULL truncate table FB_Player where FB_Player.Status ='NULL' 您正在查找Delete而不是Truncate 不能将where子句与一起使用 您可以尝试以下方法:- delete from FB_Player where FB_Player.Status is NULL 从 不能在TRUNCATE TABLE语句中指定WHERE子句 要么全有,要么一无所有 不能将Where子句与truncate一起使用。Tru
NULL
truncate table FB_Player where FB_Player.Status ='NULL'
您正在查找
Delete
而不是Truncate
不能将where子句与一起使用
您可以尝试以下方法:-
delete from FB_Player where FB_Player.Status is NULL
从
不能在TRUNCATE TABLE语句中指定WHERE子句
要么全有,要么一无所有
不能将Where子句与truncate一起使用。Truncate不带任何条件地清除表中的所有数据。相反,您可以使用Delete命令。
TRUNCATE TABLE
截断(删除)整个表-您不能将其仅限于某些行….-免费提供给每个人-在TRUNCATE TABLE
命令上没有WHERE
子句…但是表ID没有安排,我还需要其余行的表ID为“1、2、3…等”而不是“3、12、15…等”。