lunes, 7 de enero de 2013

SQLSERVER - Update with JOIN


UPDATE t1
SET
t1.Estado = 2
FROM table t1
INNER JOIN table2 t2  ON t1.ID = t2.ID
WHERE
t2.field= @Condicion


No hay comentarios:

Publicar un comentario