基本上,我不想要:
SELECT firstname, lastname FROM person ORDER BY lastname;
而是:
SELECT firstname, lastname FROM person ORDER BY <column number 2>;
我可以创建一个映射,但我想知道是否有本机技巧。
答案 0 :(得分:4)
SELECT firstname, lastname
FROM person
ORDER BY 2; --2nd column