Insert Queries

From TRCCompSci - AQA Computer Science
Revision as of 13:23, 17 December 2016 by Admin (talk | contribs) (Created page with "INSERT adds rows to an existing table, there can be different syntax depending on specific version of SQL etc ==Best Method== <SyntaxHighlight lang=sql> INSERT INTO table ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

INSERT adds rows to an existing table, there can be different syntax depending on specific version of SQL etc

Best Method

 INSERT INTO table
 (field1, field2, field3)
 VALUES
 (value1, value2, value3);

Alternative Method

 INSERT INTO table
 VALUES
 (value1, value2, value3);