建立表的时候加上约束就行了,如:()
create table <table_name>
CNAME varchar2(2)
check (CNAME in ('Y','N')) not null DEFAULT 'N',
create table <table_name>
CNAME varchar2(2)
check (CNAME in ('Y','N')) not null DEFAULT 'N',
调试欢乐多
field_1 varchar2(2)
check (field_1 in ('Y','N')) not null DEFAULT 'N',/
sql>执行成功
或者用OEM设定。
--------------------------------------------------
-- Good !