List all column Comments with where Statement

PHOTO EMBED

Thu Apr 27 2023 06:31:03 GMT+0000 (Coordinated Universal Time)

Saved by @Reemhel #sql

SELECT table_name, column_name, comments
FROM all_col_comments
WHERE owner = 'LLV3'--Schema name
AND (table_name LIKE '%recipe%' OR column_name LIKE '%recipe%' OR comments LIKE '%recipe%')
OR (table_name LIKE '%element%' OR column_name LIKE '%element%' OR comments LIKE '%element%')
OR (table_name LIKE '%RCP%' OR column_name LIKE '%RCP%' OR comments LIKE '%RCP%')
ORDER BY table_name, column_name;


--How to know your SCHEMA
SELECT sys_context('USERENV', 'CURRENT_SCHEMA') as schema_name
FROM dual;
content_copyCOPY