zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Oracle 视图 ALL_CONS_OBJ_COLUMNS 官方解释,作用,如何使用详细说明

Oracle官方 使用 如何 详细 作用 说明 解释
2023-06-13 09:11:10 时间
本站中文解释

ALL_CONS_OBJ_COLUMNS是Oracle中用于查询用户定义的所有约束的对象,包括字段的视图。它提供有关连接字段和对象信息,其中在一个约束中涉及的表和列。 可以使用这一视图来获取用户定义表中列的约束类型,例如UNIQUE,PRIMARY KEY,FOREIGN KEY等。

使用方法:

SELECT OWNER,TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME
FROM ALL_CONS_OBJ_COLUMNS
WHERE OWNER= :owner_name
AND TABLE_NAME= :table_name;

上述查询可以用来检索指定Schema的指定表的所有列的约束和列名。

官方英文解释

ALL_CONS_OBJ_COLUMNS displays information about the types that object columns (or attributes) or collection elements have been constrained to, in the tables accessible to the current user.

Related Views


DBA_CONS_OBJ_COLUMNS displays information about the types that object columns (or attributes) or collection elements have been constrained to, in all tables in the database.


USER_CONS_OBJ_COLUMNS displays information about the types that object columns (or attributes) or collection elements have been constrained to, in the tables owned by the current user. This view does not display the OWNER column.


Indicates whether the column (or element) is constrained to ONLY type (Y) or not (N)


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 Oracle 视图 ALL_CONS_OBJ_COLUMNS 官方解释,作用,如何使用详细说明