2015-05-14 24 views
0

什麼是Oracle中的域?我在互聯網上沒有找到有用的東西。什麼是Oracle中的域(與約束相關)?

我有一個問題,我必須回答:「Oracle中的約束和域有什麼區別?」

我理解約束,但我不知道Oracle中的「域」。

感謝您的幫助!

+0

域是一個域數據類型,可選檢查約束。 – jarlh

回答

3

據我所知,並與一些搜索,甲骨文犯規支持域約束

反正這pdf包含了很多關於域約束信息,伊利諾伊州過去的一些在這裏

   Using Domain Constraints 
A domain can be used instead of one of the base 
types in a CREATE TABLE statement 

– Comparisons between two domains are made in terms of 
the underlying base types 

e.g. comparing an age with an account number domain simply 
compares two integers 
The SQL:1999 standard introduced syntax for distinct 
types 
– Types are distinct so that values of different types cannot 
be compared 

由不支持Oracle
- 創建一個保存域值的表, 參考此表