From f43e849db0b8b6a1790f2895957eedf9c45346a9 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Fri, 4 May 2018 17:15:37 +0800 Subject: [PATCH] =?UTF-8?q?:bookmark:=20mysql=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/mysql/dml_demo.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codes/mysql/dml_demo.sql b/codes/mysql/dml_demo.sql index 1595ea2..13ea0ea 100644 --- a/codes/mysql/dml_demo.sql +++ b/codes/mysql/dml_demo.sql @@ -32,11 +32,11 @@ INSERT INTO user(username, password, email) VALUES ('雷九', '123456', 'xxxx@16 # 插入数据 ############################################################# --- 不指定列名方式插入记录 +-- 插入完整的行 INSERT INTO user VALUES (10, 'root', 'root', 'xxxx@163.com'); --- 指定列名方式插入记录 +-- 插入行的一部分 -- 注意自增ID数值,由于当前最大的ID值为10,所以插入本条记录时自增ID为11 INSERT INTO user(username, password, email) VALUES ('admin', 'admin', 'xxxx@163.com');