Subject | UPDATE JOIN |
---|---|
Author | betoban2007 |
Post date | 2008-02-10T05:21:53Z |
hi, you know how do i for update a table with the field of other table?
ej. in MS SQL SERVER i do it .
UPDATE tbl_equipos
SET tbl_equipos.radicada = tbl_radicadas.id_radicada
FROM tbl_equipos INNER JOIN tbl_radicadas ON tbl_equipos.esn =
tbl_radicadas.imei;
In firebir me works well
UPDATE tbl_equipos e
SET tbl_equipos.radicada = (SELECT id_radicada FROM tbl_radicadas r
WHERE e.esn = r.imei);
But the truth seems to me somewhat inefficient.
Does anyone know a better way to do this?
thanks ....
ej. in MS SQL SERVER i do it .
UPDATE tbl_equipos
SET tbl_equipos.radicada = tbl_radicadas.id_radicada
FROM tbl_equipos INNER JOIN tbl_radicadas ON tbl_equipos.esn =
tbl_radicadas.imei;
In firebir me works well
UPDATE tbl_equipos e
SET tbl_equipos.radicada = (SELECT id_radicada FROM tbl_radicadas r
WHERE e.esn = r.imei);
But the truth seems to me somewhat inefficient.
Does anyone know a better way to do this?
thanks ....