查询某个用户的表信息
来源:互联网 发布:腾亿网络 编辑:程序博客网 时间:2024/05/17 03:34
查询oracle表的信息(表,字段,约束,索引)
1、查询出所有的用户表
select * from user_tables 可以查询出所有的用户表
2、查询出用户所有表的索引
select * from user_indexes
3、查询用户表的索引(非聚集索引):
select * from user_indexes where uniqueness='NONUNIQUE'
4、查询用户表的主键(聚集索引):
select * from user_indexes where uniqueness='UNIQUE'
5、查询表的索引
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and
select * from user_tables 可以查询出所有的用户表
2、查询出用户所有表的索引
select * from user_indexes
3、查询用户表的索引(非聚集索引):
select * from user_indexes where uniqueness='NONUNIQUE'
4、查询用户表的主键(聚集索引):
select * from user_indexes where uniqueness='UNIQUE'
5、查询表的索引
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and
t.table_name='NODE'
6、查询表的主键
select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and
6、查询表的主键
select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and
au.constraint_type = 'P' AND cu.table_name = 'NODE'
7、查找表的唯一性约束(包括名称,构成列):
select column_name from user_cons_columns cu, user_constraints au where cu.constraint_name=au.constraint_name and
7、查找表的唯一性约束(包括名称,构成列):
select column_name from user_cons_columns cu, user_constraints au where cu.constraint_name=au.constraint_name and
cu.table_name='NODE'
8、查找表的外键
select * from user_constraints c where c.constraint_type = 'R' and c.table_name='STAFFPOSITION'
查询外键约束的列名:
select * from user_cons_columns cl where cl.constraint_name = 外键名称
查询引用表的键的列名:
select * from user_cons_columns cl where cl.constraint_name = 外键引用表的键名
9、查询表的所有列及其属性
select t.*,c.COMMENTS from user_tab_columns t,user_col_comments c where t.table_name='NODE'
8、查找表的外键
select * from user_constraints c where c.constraint_type = 'R' and c.table_name='STAFFPOSITION'
查询外键约束的列名:
select * from user_cons_columns cl where cl.constraint_name = 外键名称
查询引用表的键的列名:
select * from user_cons_columns cl where cl.constraint_name = 外键引用表的键名
9、查询表的所有列及其属性
select t.*,c.COMMENTS from user_tab_columns t,user_col_comments c where t.table_name='NODE'
- 查询某个用户的表信息
- 查询某个用户所有的表结构语句
- oracle记录某个用户的登录信息
- geth查询某个交易的具体信息
- geth查询某个交易的具体信息
- mongoDB查询某个经纬度附近的用户
- sql server 在多个数据库间快速查询 某个 表 的信息以及某个 列 的信息
- 将某个用户下面的所有表的查询权限赋给另外一用户
- 将某个用户的所有表的查询权限授权给另一个用户
- 查询用户下面的所有的表的信息
- 查询oracle特定表修改的用户及IP信息
- oracle查询用户下每张表的信息
- 查询当前用户下的所有表信息
- 查看某个表的字段信息使用的SQL查询语句
- 查询某个表的索引
- oracle:查询某个时间之后,指定用户,指定对象类型,并创建的表的个数
- 禁止用户查询某个列
- 查询oracle当前用户会话的信息
- 白天求生存,晚上谋发展
- C++的重要性质:虚函数和多态性
- C# 如何用socket进行通信
- 百度音乐接口
- 局部线性嵌入(LLE)算法解释
- 查询某个用户的表信息
- spring环境搭建
- 流形学习演示
- ProcMeter3 使用经验
- MyBatis整体预览(一)
- 教你玩转 Setup factory 7.0
- jndi
- Linux常用命令全集
- new,malloc,GlobalAlloc用法