2026-03-12 20:23:15
This commit is contained in:
18
timhall/miscellaneous/table_comments.sql
Normal file
18
timhall/miscellaneous/table_comments.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/miscellaneous/table_comments.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Displays comments associate with specific tables.
|
||||
-- Requirements : Access to the DBA views.
|
||||
-- Call Syntax : @table_comments (schema or all) (table-name or partial match)
|
||||
-- Last Modified: 15/07/2000
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SET VERIFY OFF
|
||||
COLUMN table_name FORMAT A30
|
||||
COLUMN comments FORMAT A40
|
||||
|
||||
SELECT table_name,
|
||||
comments
|
||||
FROM dba_tab_comments
|
||||
WHERE owner = DECODE(UPPER('&1'), 'ALL', owner, UPPER('&1'))
|
||||
AND table_name LIKE UPPER('%&2%')
|
||||
ORDER BY table_name;
|
||||
Reference in New Issue
Block a user