SQLite DELETE语句

DELETE FROM table_name
WHERE[condition];
===Demo===


image.png

(1)删除id为7的客户:
sqlite> DELETE FROM COMPANY EHERE ID = 7;
结果如下:


image.png

(2)删除表中所有数据:
sqlite> DELETE FROM COMPANY;
则删除了所有数据。

你可能感兴趣的:(SQLite DELETE语句)