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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling data from one table into another table within the same db

Status
Not open for further replies.

hopper

Programmer
Dec 5, 2000
27
US
I'm trying to pull data from one table and inserting it into another table all within the same db. I am going to delete the first table so not to worry about data dublication. I've tried SELECT INTO... and
INSERT INTO... VALUES(SELECT...) but neither of those seem to work.
If any of you have any clues I'd really appreciate it.
Thanks,
Hopper
 
Nevermind, I got it. Thanks anyway!
 
Hi, I was just wondering how you managed to solve this.
Michael Kohler
 
FYI, you can use the create table syntax to do similar stuff.
 
It's so common developers just refer to it by the abbreviation "CTAS".

Create Table newtable AS select blah, blah, blah ...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top