Re: How to duplicate a row in SQL Table using a single query
From: TheSqlGuy (TheSqlGuy.1dqkdq_at_mail.mcse.ms)
Date: 10/05/04
- Next message: David Gugick: "Re: When to use Stored Procedures!"
- Previous message: John O'Donnell: "Re: SQL Server 2000 64-bit"
- In reply to: Steve Kass: "Re: How to duplicate a row in SQL Table using a single query"
- Next in thread: LCaffrey: "Re: How to duplicate a row in SQL Table using a single query"
- Reply: LCaffrey: "Re: How to duplicate a row in SQL Table using a single query"
- Reply: David Portas: "Re: How to duplicate a row in SQL Table using a single query"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 14:42:37 -0500
Guys, Guys, Guys,
It never ceases to amaze me how so many questions get answered with
another question... instead of an answer.
I have the same question, but I think what the original author is
trying to do here is duplicate the row while allowing the identity/key
to grow on its own... without having to list every other column in the
table. (Hence the * he is wanting to use). Furthermore, the author
would like to accomplish this in a single SQL statement.
Afterall, a primary key is a primary key, and a unique identifier is a
unique identifer.
It seems to me this would be a capability often persued by any seasoned
and active SQL programmer. And thus, I would expect such functionality
from a seasoned language (aka, sql)
With the previous assumption having been made, does anyone have the
answer? Is there a way to duplicate everything in a row except for any
autonumbering identifiers while allowing those autonumbers to
autonumber as they were designed to (without listing every single other
column in the table)?
-- TheSqlGuy ------------------------------------------------------------------------ Posted via http://www.mcse.ms ------------------------------------------------------------------------ View this thread: http://www.mcse.ms/message1119654.html
- Next message: David Gugick: "Re: When to use Stored Procedures!"
- Previous message: John O'Donnell: "Re: SQL Server 2000 64-bit"
- In reply to: Steve Kass: "Re: How to duplicate a row in SQL Table using a single query"
- Next in thread: LCaffrey: "Re: How to duplicate a row in SQL Table using a single query"
- Reply: LCaffrey: "Re: How to duplicate a row in SQL Table using a single query"
- Reply: David Portas: "Re: How to duplicate a row in SQL Table using a single query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|