可以使用 DELETE 语句删除数据。

    格式

    删除数据常用操作的语法如下:

    1. DELETE FROM tblname
    2. [WHERE where_condition]

    DELETE 语句中如果不带 WHERE 条件,则表示删除全部数据。

    示例

    1. DELETE FROM employee WHERE personid>=100;
    2. Query OK, 2 rows affected (0.01 sec)
    3. SELECT * FROM employee WHERE personid>=100;
    4. Empty set (0.00 sec)