insert into salary(name, basic)
values('EEE', 20000), ('FFF', 25000)
Error:
Incorrect syntax near ‘FFF’.
name column is of type varchar and basic columns is of type int.
I am using SQL Server 2008
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m successfully able to create table and insert using same query which you are using.
http://sqlfiddle.com/#!3/a09da/1
Read this for Insert multiple using one query.
Note : As Leslie Davies pointed out this syntax for inserting multiple records using one insert query is only works with MS SQL server 2008.