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
 SQL Server Development (2000)
 IDENTITY column

Author  Topic 

noamg
Posting Yak Master

215 Posts

Posted - 2003-11-03 : 02:45:52
hi,
I have to double the table's rows:
insert into T
select * from T

But, there is an identity column.
any idea ?


Noam Graizer

nr
SQLTeam MVY

12543 Posts

Posted - 2003-11-03 : 03:00:29
insert T (col1, col2, ...)
select col1, col2, ...
from T

Just miss out the identity.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -