May 2, 2002 at 8:26 am
I want to insert data from 2 tables into a 3rd table. Here's an example.
insert into Table3(n1,n2,n3)
values ('jack','mary','billy')
insert into Table3
select * from Table1 where city='charlotte'
====
How do I combine these two insert statements into one?
May 2, 2002 at 9:22 am
Cannot join these 2 INSERTS into 1. Have to run seperately. Unless you try a union query with the values to table1.
SELECT 'jack','mary','billy'
UNION ALL
select * from Table1 where city='charlotte'
but this will take some work to make sure looks right. What exactly do you need to do?
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy