Re: Materialized view on mysql replica.
Hi.
Yes. It is very similar. My trigger has the following code:
CREATE TRIGGER trig_ivUsuarios AFTER UPDATE ON dbname.usuarios
FOR EACH ROW BEGIN
UPDATE vUsuarios SET apellido1 = NEW.paterno,
apellido2 = NEW.materno,
fecha_nacimiento = DATE_FORMAT(NEW.nacimiento,'%Y-%m-%d'),
fecha_registro = NEW.fecha_creacion,
genero = NEW.sexo,
nombre = NEW.nombre
WHERE id_monitor = NEW.id_usuario;
END
This trigger was created on table dbname.usuarios and updates data on materialized view vUsuarios.
Thanks.
Subject
Views
Written By
Posted
704
November 30, 2020 01:31PM
323
November 30, 2020 03:09PM
Re: Materialized view on mysql replica.
341
December 01, 2020 11:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.