0
创建表时如何重用先前列中提到的约束?创建表时重新使用约束
create table ticket_details(
from_stn char(3)
constraint chk check(from_stn in ('vsh','mas','ndl'))
constraint nn NOT NULL,
to_stn char(3)
constraint nn1 NOT NULL, (instead of crea)
seat_no number(3)
constraint PK primary key,
);
你的问题是什么? – reporter 2012-07-20 08:43:11
欢迎使用StackOverflow:如果您发布代码,XML或数据样本,请**在文本编辑器中突出显示这些行,然后单击编辑器工具栏上的“代码样本”按钮(“{}”)以精确地格式化和语法突出它! – 2012-07-20 08:44:32
使它成为一个域约束,并让from_stn和to_stn都基于该域。 – wildplasser 2012-07-20 10:52:40