1
I have a table of clients with the fields of Registration Date of the Registry and Date of Registry Modification someone would know how to create a trigger
updating the column of Date of Modification of that customer table every time a row is changed, so far I’ve thought of something like this here:
CREATE trigger TBCLIENTE_DATAMODIFICACAO for TB_CLIENTE
active before update position 0
AS
begin
update TB_CLIENTE set TB_CLIENTE.DATA_MODIFICACAO = current_date where TB_CLIENTE.CODIGO = ????;
end
Where the ????
is a paramêtro that I can not put properly.
I will try to do a similar procedure here, changing the situation and will soon give feedback
– lima_t