![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/05/2016, 08:18
|
![Avatar de huesos52](http://static.forosdelweb.com/customavatars/avatar287966_22.gif) | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años Puntos: 360 | |
Respuesta: cantidad de filas afectadas en update
Código SQL:
Ver originalWITH resultadoUpdate AS ( UPDATE work_order SET invoice_pid = pinvoice_pid WHERE work_order_id = wo_id RETURNING invoice_pid ) SELECT COUNT(invoice_pid) FROM resultadoUpdate;
Pruebalo de esta forma
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |