what is this order by 1?
问题 I had a question in MySQL, did it correctly. But the book code differs a little. Book: use tennis; select playerno, datediff(coalesce(end_date, current_date), begin_date) as Difference, position from committee_members where datediff(coalesce(end_date, current_date), begin_date) > 500 order by 1; What is this order by 1 ? My code also works and is almost the same except: select playerno, datediff(coalesce(end_date, current_date) AS Data, order by Data; 回答1: order by 1 means "order by the first