- 获取表字段:
- select *
- from user_tab_columns
- where Table_Name=\’用户表\’
- order by column_name
- 获取表注释:
- select *
- from user_tab_comments
- where Table_Name=\’用户表\’
- order by Table_Name
- 获取字段注释:
- select *
- from user_col_comments
- where Table_Name=\’用户表\’
- order by column_name
- /* 获取表:*/
- select table_name from user_tables; //当前用户的表
- select table_name from all_tables; //所有用户的表
- select table_name from dba_tables; //包括系统表
- select table_name from dba_tables where owner=\’zfxfzb\’
- /*