查询当前用户下的所有表信息
2017-01-06 17:28
288 查看
select distinct TABLE_COLUMN.*, TABLE_NALLABLE.DATA_TYPE, TABLE_NALLABLE.NULLABLE from (select distinct utc.table_name table_name, utc.comments table_comments, ucc.column_name column_name, ucc.comments column_comments from user_tab_comments utc, user_col_comments ucc where utc.table_name = ucc.table_name and utc.table_name not like '%_B' and utc.table_name not like '%_Z' and utc.table_name not like '%1%') TABLE_COLUMN, (select distinct table_name, column_name, nullable, DATA_TYPE from user_tab_cols where table_name not like '%_B' and table_name not like '%_Z' and table_name not like '%1%') TABLE_NALLABLE where TABLE_COLUMN.column_name = TABLE_NALLABLE.column_name and TABLE_COLUMN.TABLE_NAME = TABLE_NALLABLE.table_name
相关文章推荐
- oracle sql查询 当前用户的所有表的字段信息
- Oracle 数据库下 查询当前用户下所有表的记录总数
- 得到当前数据库中所有用户表信息
- Oracle查询一个用户的所有表的结构信息的SQL语句
- 如何查询Oracle中所有用户信息
- 查询所有SQL用户的连接信息(可显示IP)
- 转:oracle 子查询创建表,表的重命名,给表和列添加注释,显示当前用户所有表,复制已存在表结构到新表
- oracle实验5:查询当前用户的所有表和视图
- 查询oracle中所有用户信息
- oracle 获取当前用户下的所有表名与字段信息
- 新增用户查询当前用户所有表
- 查询oracle中所有用户信息
- 查询所有SQL用户的连接信息(可显示IP)
- sqlserver 查询当前数据库中的所有用户表,当前数据库中所有列
- 查询oracle中所有用户信息
- 查询Oracle当前登录用户的所有权限
- 查询数据库当前用户连接信息(MySQL,Oracle)
- Oracle查询用户所有的表、包、包体、过程、函数等信息
- 查询oracle中所有用户信息
- 查询Oracle中所有用户信息