0
I have a table with the following structure:
tb_simulation:
id(INT) | codigo(VARCHAR) | flag_valido(INT) | data_hora(DATETIME) | valor(DEC)
I would like that five minutes after the record was entered the bank would automatically change the value of flag_valido
to 1. How could I do that? I researched some topics but found nothing that could solve my problem.
Search by EVENT
– Motta
It would not be the case that, at the time you give the select in the record, compare the insertion date with the current date, and if greater than 5 min, returns as valid
– Rovann Linhalis