<progress id="zl1bp"></progress>
<menuitem id="zl1bp"><i id="zl1bp"><video id="zl1bp"></video></i></menuitem><cite id="zl1bp"></cite>
<var id="zl1bp"><strike id="zl1bp"><listing id="zl1bp"></listing></strike></var>
<menuitem id="zl1bp"></menuitem>
<var id="zl1bp"></var>
<var id="zl1bp"><strike id="zl1bp"></strike></var>
<var id="zl1bp"><video id="zl1bp"></video></var><cite id="zl1bp"><video id="zl1bp"><listing id="zl1bp"></listing></video></cite>
<var id="zl1bp"></var><var id="zl1bp"><strike id="zl1bp"></strike></var>
<var id="zl1bp"><strike id="zl1bp"><listing id="zl1bp"></listing></strike></var><var id="zl1bp"></var><cite id="zl1bp"><video id="zl1bp"><listing id="zl1bp"></listing></video></cite>
2HZZ國外網址導航喜歡加入收藏
當前位置:國外網 » 站長資訊 » 編程 » 文章詳細
SQL INSERT INTO 語句

發布時間:2021-10-23,來源:2HZZ外國網址導航

SQL INSERT INTO 語句SQL Order By SQL update INSERT INTO 語句INSERT INTO 語句用于向表格中插入新的行。


語法
INSERT INTO 表名稱 VALUES (值1, 值2,....)
我們也可以指定所要插入數據的列:


INSERT INTO table_name (列1, 列2,...) VALUES (值1, 值2,....)
插入新的行
"Persons" 表:
LastName FirstName Address City
Carter Thomas Changan Street Beijing
SQL 語句:
INSERT INTO Persons VALUES ('Gates', 'Bill', 'Xuanwumen 10', 'Beijing')
結果:
LastName FirstName Address City
Carter Thomas Changan Street Beijing
Gates Bill Xuanwumen 10 Beijing
在指定的列中插入數據
"Persons" 表:
LastName FirstName Address City
Carter Thomas Changan Street Beijing
Gates Bill Xuanwumen 10 Beijing
SQL 語句:
INSERT INTO Persons (LastName, Address) VALUES ('Wilson', 'Champs-Elysees')
結果:
LastName FirstName Address City
Carter Thomas Changan Street Beijing
Gates Bill Xuanwumen 10 Beijing
Wilson Champs-Elysees