SO I'm new to SQLite from SQLite, and I'm used to using keywords New | Old I saw that some people use the value insertedfor the new line, but this only applies to the insert, not the update. Howe can I get something like the Newone I'm using in this query?
create trigger ports_country_id_in_check
on [SISTEMA].Puerto
after insert, update
AS
BEGIN
update [SISTEMA].Puerto
set country_id = (select secuencia from [SISTEMA].Pais where codigo = New.pais_asociado)
where [SISTEMA].Puerto.secuencia = New.secuencia
end
source
share