mirror of https://github.com/dunwu/db-tutorial.git
🔖 dml 示例
parent
d851466e86
commit
6b40a35944
|
@ -21,7 +21,10 @@ VALUES ('admin', 'admin', 'xxxx@163.com');
|
||||||
|
|
||||||
-- 删除符合条件的记录
|
-- 删除符合条件的记录
|
||||||
DELETE FROM `user`
|
DELETE FROM `user`
|
||||||
WHERE `username` = 'admin';
|
WHERE `username` = 'robot';
|
||||||
|
|
||||||
|
-- 清空数据表
|
||||||
|
TRUNCATE TABLE `user`;
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
# 更新表中的记录
|
# 更新表中的记录
|
||||||
|
|
Loading…
Reference in New Issue