Mega Code Archive

 
Categories / Oracle PLSQL / Table
 

Print out comment for a given table

set linesize 78 set verify off variable tname varchar2(200) begin   :tname := upper('&1'); end; / prompt Table comments for table &1 select comments   from user_tab_comments  where table_name = :tname / prompt Column comments for table &1 select column_name, comments   from user_col_comments  where table_name = :tname  order by column_name /