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)
 SQL Query validation

Author  Topic 

souLTower
Starting Member

39 Posts

Posted - 2004-05-20 : 10:15:14
Good morning. I am updating an application. Some of the queries look like this...

UPDATE TableA A JOIN Table B ON
A.x = B.x

Set A.y = B.y = myValue

WHERE A.z = someValue;

Is this valid SQL?

Thank you

God Bless

SamC
White Water Yakist

3467 Posts

Posted - 2004-05-20 : 11:09:18
No,

Set @Variable = column = expression

is valid. You should write:

Set A.y = myValue, B.y = myvalue
Go to Top of Page

souLTower
Starting Member

39 Posts

Posted - 2004-05-20 : 11:36:46
Thank you very much

God Bless
Go to Top of Page
   

- Advertisement -