4
I’m trying to make a sum of days, informed in a field int
,with a field date
using SQL. I tested it as follows, but it sums up the day, but ignores month and year. Is there any way to make that sum?
SELECT DATE_FORMAT(ocorrencias.dt_fechamento, '%d-%m-%Y')+50 as calendario from ocorrencias
Here’s a tutorial that might help you! link http://www.devmedia.com.br/funcoes-de-manipulacao-de-data-do-mysql-5-5/25539
– Paulo Cesar