从表中删除行

时间:2014-04-07 20:59:47

标签: sql delete-row sql-delete

我的表TF包含行FILEIDWORDFREQUENCY。我正在尝试删除所有字词行'and''' '所述'从表中。以下是我的查询。它没有做任何事情。

delete from TF
where WORD='of' AND WORD='and' AND WORD='the';

2 个答案:

答案 0 :(得分:5)

使用OR代替AND

delete from TF
where WORD='of' OR WORD='and' OR WORD='the';

答案 1 :(得分:3)

delete from TF where word in ('of','and','the')