Hi ORAPERTS (ORAcle xPERTS)
How can I define a CHECK CONSTRAINT on a table for a field like zip
code....?
Here is what I am doing:
create table test
(
state varchar2(5) check (state
in('AL','AK','A Z','AR','CA','C O','CT','DE'))
)
but it seems that it freaks out....wonder why...? I tried using DOUBLE
QUOTES also but in vain....what is a correct way?
THANKS!
How can I define a CHECK CONSTRAINT on a table for a field like zip
code....?
Here is what I am doing:
create table test
(
state varchar2(5) check (state
in('AL','AK','A Z','AR','CA','C O','CT','DE'))
)
but it seems that it freaks out....wonder why...? I tried using DOUBLE
QUOTES also but in vain....what is a correct way?
THANKS!
Comment