图片中:我使用 pgadmin 4 和 Postgres 9.4。
问问题
59 次
1 回答
0
https://www.postgresql.org/docs/current/static/sql-select.html#SQL-ORDERBY
...可以是输出列(SELECT 列表项)的名称或序号,也可以是由输入列值形成的任意表达式。
不是列表项的别名,所以使用:
order by lower(rq.status)
或者
order by 2
于 2018-03-14T08:33:33.437 回答