Re: Copy a record in the same table.
philippe.leblond_at_biodiv.org
Date: 01/21/05
- Next message: David Portas: "Re: Returning table from UDF"
- Previous message: Michael C: "Re: Query for search engine"
- Next in thread: David Portas: "Re: Copy a record in the same table."
- Maybe reply: David Portas: "Re: Copy a record in the same table."
- Reply: Bob Barrows [MVP]: "Re: Copy a record in the same table."
- Messages sorted by: [ date ] [ thread ]
Date: 21 Jan 2005 12:11:24 -0800
You can also do the following:
select * into #tmp from tablea where id=3
alter table #tmp drop column id
sp_executesql 'insert into tablea select * from #tmp'
- Next message: David Portas: "Re: Returning table from UDF"
- Previous message: Michael C: "Re: Query for search engine"
- Next in thread: David Portas: "Re: Copy a record in the same table."
- Maybe reply: David Portas: "Re: Copy a record in the same table."
- Reply: Bob Barrows [MVP]: "Re: Copy a record in the same table."
- Messages sorted by: [ date ] [ thread ]