//取出了所有的表名,包括系统表在内
select * from tab
//取出了所有的表名,包括系统表在内 及sequences
select * from cat
//取出用户创建的表名
select * from user_tables;
//取出 XX用户创建的表名
select * from ALL_TABLES where owner=用户名
//得到表字段
//只得到字段
select column_name from user_col_comments where table_name='T_JCLIFETIME'
select * from user_tab_columns
select * from user_tab_cols where table_name= '表名字 ' and column_name= '列名 ';找对应的列
//得到字段描述 如类型 大小
select * from all_tab_columns where table_name=表名
//解释:
dba_开头的:所有用户的
all_开头的:当前用户可以访问的
user_开头的:当前用户创建的
user_tables
user_indexes
user_synonyms
user_views
Oracle 得到用户创建的表名 及 表字段信息
最新推荐文章于 2024-03-27 02:07:09 发布