如何在Oracle中不使用ORDER BY CLAUSE的情况下以降序显示数据 [英] how to display data in descending order without using ORDER BY CLAUSE in Oracle
本文介绍了如何在Oracle中不使用ORDER BY CLAUSE的情况下以降序显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是oracle的新手,我有一个问题,即: 如何在Oracle中不使用ORDER BY CLAUSE的情况下以降序显示数据. 无论是sql还是pl/sql.
I am new in oracle and I have one question i.e.: how to display data in descending order without using ORDER BY CLAUSE in Oracle. whether it is in sql or pl/sql.
推荐答案
避免ORDER BY,使用具有平坦结果的分层查询,以及ORDER SIBLINGS! (好的,这将完全相同).
Avoid ORDER BY, use a hierarchical query with flat results, and ORDER SIBLINGS! (okay, this will be exactly the same).
您也可以使用以下方法做到这一点:
You can also do it with:
SELECT * FROM ...
START WITH 1 = 1
CONNECT BY 0 = 1
ORDER SIBLINGS BY ...
这篇关于如何在Oracle中不使用ORDER BY CLAUSE的情况下以降序显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文