Hello, I have a table where the following fields exist.
prod_id [int 11]
prod_nome [varchar 100]
prod_desc [textarea]
prod_valor [double 10,2]
prod_data_cadastro [datetime]
I need to create a SELECT that shows the time that passed to the current date using the prod_data_cadastro [datetime] column record.
I tried this way:
SELECT *, DATEDIFF(NOW(), 'prod_data_cadastro') as 'data_corrida' FROM 'produto' ORDER BY 'data_corrida' DESC;
But it only returns me the number of running days, hours and minutes no, is it possible to bring date and time too?