union all只能在最后一个select中使用order by。 在使用union all时,其不管各个select中是否列名相同,按照顺序将数据连接起来,当然按照顺序来说每一列的数据类型应该相同。