Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert multiple records in one statement

Status
Not open for further replies.

rhonda11

Technical User
Nov 4, 2002
96
US
Please help me to insert multiple record in a single statement and what the max record I can insert in one statement. The below is what I been doing for inserting a as a signal record.

Insert into emp123
(first, last, age)values
('Charles', 'Smith', 26);

Thanks in advance
 
There is no max.

Try the union statement

Insert into emp123 (first, last, age)
select 'Charles', 'Smith', 26
union
select 'Jane', 'Doe', 27
union
select 'Bill', 'Doe', 27



................... and so on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top