insert select

March 19th, 2007 by Mr.M | No Comments »

quick and easy way of adding multiple rows into a table using one INSERT INTO statement

insert into @table (a,b,c)
select 'who', 'what','when'
union all
select 'why','how','mom'

Leave a Reply

You must be logged in to post a comment.