DELETE FROM <表名> [WHERE <条件>];
mysql> select * from authors;
mysql> delete from authors where author_id=4;
Query OK, 1 row affected (0.76 sec)
mysql> select * from authors;
[attach]370[/attach]
mysql> delete from authors where author_id in (5,6,7);
Query OK, 3 rows affected (0.74 sec)
mysql> select * from authors;
[attach]371[/attach]
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |