tags:

views:

46

answers:

2

This is my SQL Statement

UPDATE sysdba.CONTACT, sysdba.ADDRESS
SET sysdba.ADDRESS.Address1 = '123 Tech Parway'
WHERE sysdba.CONTACT.AddressID = sysdba.ADDRESS.AddressID
AND sysdba.CONTACT.contactID = 'CRBD'

What is wrong here?

Thanks in advanced!

EDIT: Using SQL Server 2005

A: 

I can't see any problem with this syntax according to MySQL UPDATE command reference. Maybe you're getting errors from MSSQLServer? Could you supply the errors for further investigation?

Spidey
+7  A: 

TSQL solution

UPDATE sysdba.ADDRESS
SET Address1 = '123 Tech Parway'
FROM sysdba.ADDRESS
INNER JOIN sysdba.CONTACT 
    ON sysdba.CONTACT.AddressID = sysdba.ADDRESS.AddressID
WHERE sysdba.CONTACT.contactID = 'CRBD'
devio
Than you very much!!!
Etienne