Insert query
how to insert data in a table
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 9, 2015, 9:40 PM EDT
VALUES (value1,value2,value3,...);
VALUES (value1,value2,value3,...);
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 9, 2015, 11:02 PM EDT
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 9, 2015, 11:16 PM EDT
In the example below, the column name
firstwill match up with the value'Luke', and the column namestatewill match up with the value'Georgia'.Example:
insert into employee (first, last, age, address, city, state) values ('Luke', 'Duke', 45, '2130 Boars Nest', 'Hazard Co', 'Georgia'); INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal','Tom B. Erichsen','Skagen 21','Stavanger','4006','Norway');