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)
 simple update query.

Author  Topic 

harshal_in
Aged Yak Warrior

633 Posts

Posted - 2003-02-21 : 01:08:50
hi,
I have these two update queries:
update table1 set col1='xyz' where id=4
update table2 set col2='abc' where id=4

can i combine these two updates into one?
there is a relation between the two tables on column 'id'.
thanks,
Regards,
Harshal.

Expect the UnExpected

ojn.
Starting Member

10 Posts

Posted - 2003-02-21 : 02:27:54
Afraid not. Each Update can only affect one table.

--
-oj
http://www.rac4sql.net

--
-oj
www.rac4sql.net
Go to Top of Page

harshal_in
Aged Yak Warrior

633 Posts

Posted - 2003-02-21 : 02:42:58
quote:

Afraid not. Each Update can only affect one table.

--
-oj
http://www.rac4sql.net

--
-oj
www.rac4sql.net


hmm...
ok thnks for the reply.
harsh.

Expect the UnExpected
Go to Top of Page
   

- Advertisement -