mysql INSERT statement syntax

mysql INSERT statement syntax

Role: to insert a new row to the table.

Syntax: INSERT INTO table name VALUES (value 1, value 2, ....) or INSERT INTO table_name (column 1, column 2, ...) VALUES (value 1, value 2, ....)

mysql INSERT statement example

// insert new data to the persons table 
INSERT INTO Persons VALUES ( 'Gates' , 'Bill', 'Xuanwumen 10', 'Beijing'); Changzhou marble test platform 
// insert new data in the column designated 
INSERT INTO Persons (LastName, Address) VALUES ( ' Wilson', 'Champs-Elysees');

Guess you like

Origin www.cnblogs.com/furuihua/p/11904753.html