-
SQL Server Problem
Hi There,
Could anyone tell me why this doesn't work in sql server?
INSERT INTO courses (applicationid, ccoursename) VALUES (2973,'328'), (2973,'330'), (2973,'332'), (2973,'227');
Thankyou
-
There may be a better way, but try this instead:
INSERT INTO courses (applicationid, ccoursename) SELECT 2973,'328';
INSERT INTO courses (applicationid, ccoursename) SELECT 2973,'330';
INSERT INTO courses (applicationid, ccoursename) SELECT 2973,'332';
INSERT INTO courses (applicationid, ccoursename) SELECT 2973,'227';
-
 Originally Posted by mattastic
Hi There,
Could anyone tell me why this doesn't work in sql server?
INSERT INTO courses (applicationid, ccoursename) VALUES (2973,'328'), (2973,'330'), (2973,'332'), (2973,'227');
Thankyou
Looks fine. Are you getting an error back?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks