🔖 dml 示例

pull/1/head
Zhang Peng 2018-05-02 20:39:34 +08:00
parent d851466e86
commit 6b40a35944
1 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,10 @@ VALUES ('admin', 'admin', 'xxxx@163.com');
-- 删除符合条件的记录
DELETE FROM `user`
WHERE `username` = 'admin';
WHERE `username` = 'robot';
-- 清空数据表
TRUNCATE TABLE `user`;
#############################################################
# 更新表中的记录