2
I need to insert some information in the table called task, however, only when a certain condition is accepted that in the case of these two date fields, I put it for today for example if it was manual, ie I would insert in the system on today’s date, but I only want q to be inserted in the table when those dates are for example for the 20th of this month.
insert into Tarefa
(
TarID,
ProID,
TarData ,
DataAberturaSistema
)
values (
168442,
2,
'2017-10-05 09:20:10.000',
'2017-10-05 09:20:10.015'
)
you can use a Rigger to reject the inserts that do not respect the rules
– Lucas Simões
and how it would be more or less this Trigger?
– Renan Bessa