I have a column start_week and another column end_week. I make a trigger where I set start_week set end_week in + 7days, but it doesn't work correctly.
Here is my code:
CREATE TRIGGER T_fin_semana UPDATE of fin_semana on fb_clients
BEGIN
UPDATE fb_clients SET fin_semana = 'select date('now','+6 day'), WHERE nombre=old.nombre;
END;
the error:
Execution finished with errors.
Result: near "select": syntax error
At line 1:
CREATE TRIGGER T_fin_semana UPDATE of fin_semana on fb_clients
BEGIN
UPDATE fb_clients SET fin_semana = select
