System table's column names are not uniform???
Posted: Mon Nov 14, 2016 9:13 pm
I'm curious ... How come a table's schema is identified by the TABLE_SCHEMA column in TABLES system table, while a table's schema name in the ALL_TABLES system table is identified by the SCHEMA_NAME column?
Code: Select all
dbadmin=> select distinct table_schema from tables;
table_schema
--------------
test
public
pulse
(3 rows)
dbadmin=> select distinct table_schema from all_tables;
ERROR 2624: Column "table_schema" does not exist
dbadmin=> select distinct schema_name from all_tables;
schema_name
-------------
pulse
v_catalog
test
public
v_monitor
(5 rows)