题解 | #返回 2020 年 1 月的订单号和订单日期#
返回 2020 年 1 月的所有订单的订单号和订单日期
https://www.nowcoder.com/practice/c7734db33854477aa94ae238a3390435
本题要点主要是日期提取函数,给定日期提取年月日时分别采用Year()、Month()、Day()函数
select order_num,order_date from Orders where Year(order_date) = 2020 and Month(order_date) = 1 order by order_date asc