时间:2021-07-01 10:21:17 帮助过:27人阅读
delete:
DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
注意:
需要的注意的是,一定要有限制条件,否则清空所有表数据
限制条件:
where
limit
删除前请三思,确认表中数据无用,再ENTER
delete from db1;
delete from copy where age=100;
delete from copy where age > 50 order by age desc limit 1;
UPDATE [LOW_PRIORITY] [IGNORE] table_reference
SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
update copy set age=22;
update copy set name=‘hyt‘ where id=24;
updata copy set name=‘hyt‘,age=‘22‘ where id=13;
请各位大佬多多指教
MYSQL-删改
标签:size cond count let color ble 过滤 RoCE 条件过滤