Oracle

Constraints

Figo Kim 2006. 11. 23. 21:14
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
- NOT NULL
- UNIQUE
- PRIMARY KEY
- FOREIGN KEY
- CHECK



  • You can name a constraint, or the Oracle server automatically generates a name by using the SYS_Cn
  • All constraints are stored in the data dictionary.
  • SYS_Cn  n is an integer so that the constraint name is unique.
  • Define a constraint at the column or table level.

* Syntax

CREATE TABLE [schema.]table
(column datatype [DEFAULT expr]
[column_constraint],
...
[table_constraint][,...]);

* Column level constraint:
column [CONSTRAINT constraint_name] constraint_type,

*Table level constraint:
column, ...
[CONSTRAINT constraint_name] constraint_type
(column, ... ),
  • NOT NULL constraints must be defined at the column level.

'Oracle' 카테고리의 다른 글

Defining Constraints  (0) 2006.11.23
Defining Constraints  (0) 2006.11.23
Constraints  (0) 2006.11.23
Letter from my sister...  (0) 2006.11.18
오라클 스터디 가능할까요?  (0) 2006.11.17