Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Points to be paid attention to in oracle sorting

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The sorting algorithm is divided into stable sorting and unstable sorting. In general, unstable sorting has a lower time complexity.

In oracle, you should also note that the sorted result set may not be the target result set.

1, no collation specified

Select * from t order by something

The default growing sort (ASCENDING) is used

2. Permutation is not the only key or there is repetition in the combination of permutation.

At this time, the data of the top 10 items obtained by querying 10 items and 11 items may be inconsistent.

3, no sort sequence specified

Select * from t

Very common way of writing, at this time the data does not have any sort (in Ask Tom Tom answers Unless and until you add "order by" to a query, you cannot say ANYTHING about the order of the rows returned. The original address), so in a paging query, the data in the first page may appear on the third page.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report