工作笔记:
from tms_car tp
order by
CASE WHEN IFNULL(tp.update_date,'' ) ='' THEN tp.create_date
ELSE tp.update_date END DESC , tp.create_date DESC
工作笔记:
from tms_car tp
order by
CASE WHEN IFNULL(tp.update_date,'' ) ='' THEN tp.create_date
ELSE tp.update_date END DESC , tp.create_date DESC