Differences between user_tab_columns and user_tab_cols in oracle

Source: Internet
Author: User


The difference between user_tab_columns and user_tab_cols in oracle depends on the oracle metadata create or replace view sys. user_tab_columns asselect TABLE_NAME, COLUMN_NAME, DATA_TYPE, direction, direction, DATA_LENGTH, DATA_PRECISION, DATA_SCALE, direction, COLUMN_ID, DEFAULT_LENGTH, DATA_DEFAULT, direction, LOW_VALUE, HIGH_VALUE, DENSITY, distance, NUM_BUCKETS, costs, SAMPLE_SIZE, CHARACTER_SET_NAME, CHAR_COL_DECL_LEN Metric, GLOBAL_STATS, USER_STATS, AVG_COL_LEN, CHAR_LENGTH, CHAR_USED, metric, DATA_UPGRADED, HISTOGRAM from USER_TAB_COLS where HIDDEN_COLUMN = 'no' www.2cto.com after oracle creates an index in the table, A field is automatically added to the table, but this field is identified by YES in HIDDEN_COLUMN in user_tab_cols. Therefore, we should try to use user_tab_columns instead of user_tab_cols when using it. Because user_tab_cols has some hidden fields.

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.