Perchè
mi restituisce NULL ???Codice PHP:
select DATE_FORMAT('campo2','%d-%m-%Y %H:%i:%s') as test from tabella;
Nel campo2 il valore è '2006-12-21 11:59:00'
Se invece scrivo
ottengo la fromattazione giusta della data:Codice PHP:
select DATE_FORMAT('2006-12-21 11:59:00','%d-%m-%Y %H:%i:%s') as test;
'21-12-2006 11:59:00'