There are 2 selects that select all tables and all columns of these tables for the selected schema. For columns, the type and name of the column is displayed. For tables, just TABLE .
SELECT table_name, column_name, CASE data_type WHEN 'NUMBER' THEN 'NUM' WHEN 'VARCHAR2' THEN 'VAR2' WHEN 'DATE' THEN 'DATE' END as type FROM user_tab_columns UNION ALL SELECT DISTINCT table_name, 'TABLE', 'TABLE' FROM user_tab_columns; Is it possible to somehow do the same thing through one SELECT without UNION ?
++++++++++++++++++++++++++++++++++++ | table_name | column_name | type | ++++++++++++++++++++++++++++++++++++ | ORDER | ID | NUM | | ORDER | PRICE | NUM | | ORDER | DATE | DATE | | ORDER | TABLE | TABLE | | .... | .... | ... | ++++++++++++++++++++++++++++++++++++