"William IT" <[EMAIL PROTECTED]> wrote:
> Does MySQL support update from other table?
>
> I run this query and get error:
>
>UPDATE TableA SET Division=TableB.Division
>FROM TableB
>WHERE TableA.Code=TableB.Code
>
Since version 4.0.4 you ca
Does MySQL support update from other table?
I run this query and get error:
UPDATE TableA SET Division=TableB.Division
FROM TableB
WHERE TableA.Code=TableB.Code
Thanks.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http
"William IT" <[EMAIL PROTECTED]> wrote:
> I try convert this MS SQL Statement but an error occurs:
>
> UPDATE a SET a.ACCOUNT_CODE=b.ACCOUNT_CODE
> FROM a,b
> WHERE a.ACCODE=b.ACCOUNT_OLD
>
> Is there any syntax doing same as above?
>
Yes. From v4.0.4 you can do:
UPDATE a, b
I try convert this MS SQL Statement but an error occurs:
UPDATE a SET a.ACCOUNT_CODE=b.ACCOUNT_CODE
FROM a,b
WHERE a.ACCODE=b.ACCOUNT_OLD
Is there any syntax doing same as above?
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysq