delete 刪除表記錄
格式1:刪除所有的表記錄
delete from 表名;
格式2:僅刪除符合條件的記錄
delete from 表名
where 條件;
mysql> delete from user where shell is null;
mysql> select * from user where shell is null;
Empty set (0.00 sec)
delete 刪除表記錄
格式1:刪除所有的表記錄
delete from 表名;
格式2:僅刪除符合條件的記錄
delete from 表名
where 條件;
mysql> delete from user where shell is null;
mysql> select * from user where shell is null;
Empty set (0.00 sec)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。