暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Constraints约束
726
1页
0次
2020-06-02
5墨值下载
Constraints enforce rules at the table level.
Constraints ensure the consistency and integrity of the database.
The following constraint types are valid:
NOT NULL
非空
UNIQUE
唯一
PRIMARY KEY
主键
FOREIGN KEY
外键
CHECK
校验
View a constraint in the data dictionary.
数据字典中查看
You can name a constraint or the Oracle server generates a name by using
the SYS_Cn format.
约束命名
Create a constraint at either of the following times:
创建约束的时间
At the same time as the creation of the table
在创建表的同时
After the creation of the table
创建表之后
//Example of a column-level constraint
CREATE TABLE employees(
employee_id NUMBER(6) CONSTRAINT emp_emp_id_pk
名称
PRIMARY KEY,
7rst_name VARCHAR2(20), ...);
//Example of a table-level constraint:
CREATE TABLE employees(
employee_id NUMBER(6),
7rst_name VARCHAR2(20),
job_id VARCHAR2(10) NOT NULL,
CONSTRAINT emp_emp_id_pk PRIMARY KEY (EMPLOYEE_ID
指定
));
of 1
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜