oracle 查看建表语句
2016-01-04 16:00
441 查看
oracle 查看建表语句
获取表:
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=’用户名’
user_tables:
dba_tables:
all_tables:
all_objects:
获取表字段:
select * from user_tab_columns where Table_Name=’用户表’;select * from all_tab_columns where Table_Name=’用户表’;
select * from dba_tab_columns where Table_Name=’用户表’;
获取表注释:
select * from user_tab_comments–相应的还有dba_tab_comments,all_tab_comments,这两个比user_tab_comments多了ower列。
获取字段注释:
select * from user_col_comments相关文章推荐
- Oracle 的 rownum
- IT忍者神龟之Oracle DBA经常使用查询吐血列举
- Oracle 创建表
- 使用ROracle从Oracle数据库获取数据框
- SAP R3 Oracle 9i ORA-06413 连接未打开错误
- 【转】Oracle TYPE OBJECT(2)
- MySQL模拟Oracle的Sequence两种方法
- OracleHelper类
- Oracle的rollup、cube、grouping sets函数
- 类型:Oracle;问题:oracle 时间加减;结果:ORACLE 日期加减操作
- oracle 树状查询
- oracle修改字符集方法
- 用命令建oracle数据库实例
- Oracle中的AS和IS的不同及使用
- 连接oracle时报错:ORA-28001: the password has expired
- Oracle数据库表复制语句
- ORACLE 11G 搭建dataguard详细步骤(所有操作总结)
- oracle12c怎么pdb容器不会自动关闭
- SAP R3 采购申请相关简单操作 :附Oracle后台数据库对应表明细。
- 关于Citrix Vmware Symantec Oracle等软件上门实施服务说明