Insert Data in Multiple Tables

How to insert data in multiple tables at same time. using SQL Server 2000

Questions by rahulchd3112   answers by rahulchd3112

Showing Answers 1 - 2 of 2 Answers

krishna8081

  • Feb 24th, 2009
 

Here is the example for you question.

USE
YourDB
GO
INSERT INTO
MyTable
(FirstCol,
SecondCol)
SELECT ‘First’
,1
UNION ALL
SELECT ‘Second’
,2
UNION ALL
SELECT ‘Third’
,3
UNION ALL
SELECT ‘Fourth’
,4
UNION ALL
SELECT ‘Fifth’
,5
GO


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions