You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
1.0 KiB
14 lines
1.0 KiB
[oracle]
|
|
tables = select distinct table_name,comments from user_tab_comments where table_type='TABLE' and instr(table_name,'BIN$')<1
|
|
views = select distinct table_name,comments from user_tab_comments where table_type='VIEW'
|
|
procedure = select distinct name,'' as comments 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_detail = select b.COLUMN_NAME,a.COMMENTS, b.COLUMN_ID, b.DATA_TYPE, b.NULLABLE,b.DATA_DEFAULT,b.DATA_LENGTH 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 = |