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)
 how to make it work

Author  Topic 

dasu
Posting Yak Master

104 Posts

Posted - 2004-09-23 : 23:34:47
please make this update statement work

create table test(id int,name varchar(30))
insert into test values(10,'das')
update test set id name (select id,id from sysobjects)
select * from test

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-09-23 : 23:42:57
not sure what you are going for...

but here goes:

create table test(id int,name varchar(30))
insert into test values(10,'das')
update test
set id=A.id, name=a.name
from dbo.sysobjects A
select * from test
drop table test

Corey
Go to Top of Page
   

- Advertisement -