Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> CHECK Constraints

CHECK Constraints

From: Hari Om <hari_om_at_hotmail.com>
Date: 5 Sep 2003 14:19:28 -0700
Message-ID: <d1d5ebe4.0309051319.742b0867@posting.google.com>


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','AZ','AR','CA','CO','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! Received on Fri Sep 05 2003 - 16:19:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US