Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Replicating table using select stmt as in oracle

Author  Topic 

chandrashekar
Starting Member

3 Posts

Posted - 2004-06-22 : 04:30:08
hi guys,

could u tell me how to replicate a table the lazy way like

create table #table2
AS
select Associate_id,Statusid,requestedon,
Mentor_id from Mentees_Request

using the AS keyword like that in the Oracle

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-06-22 : 04:59:33
select Associate_id,Statusid,requestedon,
Mentor_id
into #table2
from Mentees_Request


Duane.
Go to Top of Page

Mr.Xyz
Starting Member

5 Posts

Posted - 2004-06-22 : 04:59:33
select * into table2 from table
Go to Top of Page
   

- Advertisement -