Subject | Re: UPDATE AND DELETE WITH JOIN |
---|---|
Author | Ali Gökçen |
Post date | 2006-07-11T14:01:21Z |
Hi Roberto
so, what is it for "FROM MAT" ?
Try this:
UPDATE MAT SET MAT.MT=137
WHERE EXISTS (SELECT 1 FROM ALU WHERE MAT.ALREG = ALU.ALREG
AND ALU.EDCOD='TWQ')
Regards.
Ali
> This is a valid sentence with SQL Server:Really? what a pitty for MSSQL users.
> UPDATE MAT SET MAT.MT=137You are allready saying "UPDATE MAT",
> FROM MAT INNER JOIN ALU ON MAT.ALREG = ALU.ALREG
> WHERE ALU.EDCOD='TWQ';
> With FireBird 1.5 I get Token unknow line 2 char 1 FROM
> How can I do this kind of UPDATE with FireBird 1.5?
> How can I do a similar DELETE (with JOIN) with FireBird 1.5?
>
so, what is it for "FROM MAT" ?
Try this:
UPDATE MAT SET MAT.MT=137
WHERE EXISTS (SELECT 1 FROM ALU WHERE MAT.ALREG = ALU.ALREG
AND ALU.EDCOD='TWQ')
Regards.
Ali