2017-05-28 60 views

回答

1

一種方法是來包裝你可空日期字段如下:

SELECT 
coalesce(nullableDate,date_add(curdate(), interval 100 year)) as thedate 
FROM MyTable 

您可以用您自己選擇的身影,包括「遙遠的過去」負數更換100