SELECT IF(mydate,date_format(mydate, '%d/%m/%Y'),NULL) FROM xyz;
出典: http://dev.mysql.com /doc/refman/5.0/en/control-flow-functions.html
SELECT IF(mydate,date_format(mydate, '%d/%m/%Y'),NULL) FROM xyz;
出典: http://dev.mysql.com /doc/refman/5.0/en/control-flow-functions.html