Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Location
    India
    Posts
    4

    Unanswered: Syntax of check constraint

    Hi everybody,
    I am a Oracle beginner.
    i got doubt in declaring the check constraint while creating table....
    plz any body give a syntax and also one example.
    I am using Oracle8...
    Plz help me.

  2. #2
    Join Date
    Apr 2003
    Location
    Minneapolis, MN
    Posts
    273
    Bhavin

    MS Computer Science
    OCP DBA 9i/8i

  3. #3
    Join Date
    Nov 2003
    Location
    Bangalore, INDIA
    Posts
    333

    Thumbs up

    Hi,

    CREATE TABLE Table_name (
    col1 Data_type
    ,col2 Data_type
    ,col2 Data_type
    ,........
    ,coln Data_type
    , CONSTRAINT Con_Name CHECK (
    col_name Constraint))
    ;
    SATHISH .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •