獲取表:html
按 Ctrl+C 複製代碼
按 Ctrl+C 複製代碼
獲取表字段:post
select * from user_tab_columns where Table_Name='用戶表'; select * from all_tab_columns where Table_Name='用戶表'; select * from dba_tab_columns where Table_Name='用戶表'; user_tab_columns: table_name,column_name,data_type,data_length,data_precision,data_scale,nullable,column_id等 all_tab_columns : ower,table_name,column_name,data_type,data_length,data_precision,data_scale,nullable,column_id等 dba_tab_columns: ower,table_name,column_name,data_type,data_length,data_precision,data_scale,nullable,column_id等
獲取表註釋:url
select * from user_tab_comments user_tab_comments:table_name,table_type,comments 相應的還有dba_tab_comments,all_tab_comments,這兩個比user_tab_comments多了ower列。 獲取字段註釋: select * from user_col_comments user_col_comments:table_name,column_name,comments 相應的還有dba_col_comments,all_col_comments,這兩個比user_col_comments多了ower列。