Oracle 的constraint写法
来源:互联网 发布:shell 数组函数 编辑:程序博客网 时间:2024/05/22 09:06
- 前言
There are a couple of ways to add constraints to restrict the values in the database. This article is about how to define a foreign key constraint and a check constraint in two ways. - Table T1
CREATE TABLE T1 (PID INT PRIMARY KEY, SCORE INT, ISMINORITY VARCHAR(1));
- Table T2
we are going to define a fk constraint and a check constraint on T2- the inline way
CREATE TABLE T2 (PID INT CONSTRAINT FK_PID REFERENCES T1(PID), SCORE INT, ISMINORITY VARCHAR(1) CHECK(ISMINORITY IN ('N','Y')));
- the out-of-line way
CREATE TABLE T2 (PID INT, SCORE INT, ISMINORITY VARCHAR(1),CONSTRAINT FK_PID FOREIGN KEY (PID) REFERENCES T1(PID),CONSTRAINT CHECK_ISMINORITY CHECK(ISMINORITY IN ('N','Y')));
0 0
- Oracle 的constraint写法
- Oracle Constraint
- Oracle Constraint
- oracle Constraint
- ORACLE中CONSTRAINT的四对属性
- ORACLE中CONSTRAINT的四对属性
- ORACLE中CONSTRAINT的四对属性
- jdbc的写法 oracle
- ORACLE 行转列 的写法
- oracle ||符号的写法
- Oracle的时间差写法
- Constraint of Oracle studing
- oracle 建表 约束 constraint
- Oracle constraint type
- Oracle Constraint 约束
- ORACLE ALTER CONSTRAINT
- constraint - Oracle Documentation
- oracle约束讲解constraint
- CSU 1320 Scoop water【卡特兰数】
- wed 前端开发 定位
- 程序员面试金典——解题总结: 9.18高难度题 18.7给定一组单词,编写一个程序,找出其中的最长单词,且该单词由这组单词中的其他单词组合而成。
- NFC标签的读写
- 简约至上-读书笔记
- Oracle 的constraint写法
- jQuery.extend 函数使用详解
- 录音转换Mp3-Lame4Android 下篇
- 常见c语言编译错误解析
- Java heap out of memory
- Java8特性总结(三)接口方法,注解,日期,Base64
- 问题:The certificate used to sign "XXX" has either expired or has been revoked
- 自定义MyString()
- 非常好用的git指令