日期排序 mysql 个结果
Dates sort mysql results
我有如图所示的数据库结构。我想要一列的结果。
我尝试过 ORDER BY start, end 但它没有那样工作。
select * from
(
select `start` as date from your_table
union all
select `end` from your_table
) tmp
order by date
我有如图所示的数据库结构。我想要一列的结果。
我尝试过 ORDER BY start, end 但它没有那样工作。
select * from
(
select `start` as date from your_table
union all
select `end` from your_table
) tmp
order by date