Difference between SYS.ALL_TAB_COLUMNS and SYS.ALL_TAB_COLS in Oracle 12c
Asked Answered
M

2

7

What is the difference between the ALL_TAB_COLUMNS and ALL_TAB_COLS system tables in Oracle 12c? In my DB, the ALL_TAB_COLUMNS has slightly fewer rows than ALL_TAB_COLS.

Melmon answered 6/11, 2014 at 22:8 Comment(0)
V
13

From the Oracle manual for ALL_TAB_COLS

This view differs from "ALL_TAB_COLUMNS" in that system-generated hidden columns and invisible columns, which are user-generated hidden columns, are not filtered out.

From the Oracle manual for ALL_TAB_COLUMNS

This view filters out system-generated hidden columns and invisible columns, which are user-generated hidden columns. The ALL_TAB_COLS view does not filter out hidden columns and invisible columns

Vasodilator answered 6/11, 2014 at 22:20 Comment(0)
M
0

ALL_TAB_COLUMNS lists only user-defined columns whereas ALL_TAB_COLS also seems to contain some system columns in each user table that are not normally visible.

Melmon answered 6/11, 2014 at 22:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.