0

我需要删除表中有 45K 行(共 125k)。

 DELETE FROM `tablename` WHERE `name` IS NULL ;

回来

ERROR 1395 (HY000): Can not delete from join view
4

2 回答 2

1

做一个SHOW CREATE VIEW tablename看看哪些表在select连接视图中。结果将类似于:

CREATE VIEW tablename AS SELECT name, f2, f3 … FROM table1;

当您拥有具有名为name( table1) 的列的表的名称时,您可以进行删除:

DELETE FROM `table1` WHERE `name` IS NULL ;
于 2013-09-20T17:16:30.977 回答
0

尝试这个

DELETE FROM `tablename` WHERE `name`="" ;
于 2013-09-20T17:02:28.917 回答