About the intention and backtracking of the Oracle descending index

Source: Internet
Author: User
Tags create index
oracle| Index
The descending index is essentially the FBI, and its specific definition can be queried by user_ind_expressions or dba_ind_expressions.
Similarly, a descending index can be used only under the CBO.

Connected to oracle9i Enterprise Edition release 9.2.0.4.0
Connected as Eygle


Sql> CREATE TABLE T as select * from Dba_users;

Table created

Sql> CREATE index Idx_username_desc on T (username desc);

Index created


Sql> Select Index_name,table_name,index_type from user_indexes where table_name= ' T ';

INDEX_NAME table_name Index_type
------------------------------ ------------------------------ ---------------------------
Idx_username_desc T function-based NORMAL


Sql> Select Column_name,column_position,descend from User_ind_columns
2 where table_name= ' T ';

column_name Column_position Descend
------------------------------ --------------- -------
sys_nc00013$ 1 DESC

Sql>


Sql> SELECT * from user_ind_expressions where table_name= ' T ';

INDEX_NAME table_name Column_expression column_position
------------------------------ ------------------------------ ------------------------------ ---------------
Idx_username_desc T "USERNAME" 1



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.