select first_name from employees order by substr(first_name, length(first_name)-1) asc 假设first_name是mysql,length(mysql)=5,length(mysql)-1=4,substr(mysql,4)索引从1开始,4是q,没有说明取多少个字符则取到结束,结果是ql 假设first_name是first_name,length(first_name)=10,length(first_name)-1=9,substr(first_name,first_name)索引从1开始,9是m,没有...