3
How do I perform an update at the same time on two different tables?
I have a table called Tarefa and another call VinculoReferencia, both have the field Taridinclusao where is this field that needs to be updated at the same time, and the field TarID, which is the reference of the tables.
In the query below is a simple update if it was to update only in the table vinculoreferencia, but also want that when update this, update also in task table in field taridinclusao:
update vinculoreferencia set taridinclusao = 168228 where tarid = 168261.
With Stored Procedure you can do this.
– Renato Junior