I need to make a simple update where I update the column "DiasPendentes" with the value of the current date minus the date of the column "DataAbertura".
"UPDATE tblPendencia SET DiasPendentes = (DATEDIFF(day, DATAABERTURA, DATE())) WHERE PendenciaOrigem = 'PM'"
I am running this query but it is returning me the error "No value given for one or more required parameters".
Thank you.