作者adrianshum (Alien)
看板Database
标题Re: [SQL ] 限制选项
时间Tue May 13 10:01:00 2008
※ 引述《jianhuei (凌静)》之铭言:
: 我要创一个table
: 要有status栏位里只能有 "grad" or "undergrad"
: 语法要怎麽写阿????
: 谢谢大家
我想不同的 DBMS 可能有不同解决方法吧.
我公司用 Oracle, 通常会建一个 table 放
Status 的 possible values, 然後有 status
的 table 则把 status 设成 foreign key 指
向 Status possible values 的那个 table.
alien
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 202.155.236.82