On Thu, Jul 03, 2003 at 08:37:28PM +0200, jose antonio leo wrote:
> necesito hacer un update con todos los campos que me devuelve un select.
> esto es posible?
> Es decir me gustaria hacer un update from t1 set tam='P' where
> cod_int=(select int_art from t2),
WHERE cod_int IN (select ...)
(es ineficiente en 7.3 y anteriores; mira en el FAQ para ver como se
resuelve eficientemente, usando EXISTS)
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Postgres is bloatware by design: it was built to house
PhD theses." (Joey Hellerstein, SIGMOD annual conference 2002)