[oracle] tables = select distinct table_name from user_tab_comments where table_type='TABLE' views = select distinct table_name from user_tab_comments where table_type='VIEW' procedure = select distinct name From user_source where type = 'PROCEDURE' view_detail = select text from all_views where view_name='#$#' procedure_detail = SELECT text FROM user_source WHERE NAME = '#$#' ORDER BY line table_field = select b.COLUMN_NAME,a.COMMENTS, b.COLUMN_ID, b.DATA_TYPE, b.DATA_LENGTH, b.NULLABLE, b.DEFAULT_LENGTH, b.DATA_DEFAULT from user_col_comments a left join user_tab_columns b on a.table_name=b.table_name and a.COLUMN_NAME = b.COLUMN_NAME where a.table_name = '#$#' ORDER BY b.COLUMN_ID asc [postgresql] tables = SELECT distinct table_name FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name views = select distinct table_name from information_schema.views WHERE table_schema = 'public' ORDER BY table_name view_detail = procedure_detail =