RDOHELP72.HLB  —  DEFINE_CONSTRAINT, Format
  (B)0DEFINE CONSTRAINT qqqqq> name qqqqk
        lqqqqqqqqqqqqqqqqqqqqqqqqqqqj
        mqqqqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqk
             mq> DESCRIPTION IS /* text */ qqqqj    x
        lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
        mqqq FOR qqq> rse qqqk
        lqqqqqqqqqqqqqqqqqqqqj
        mqq> REQUIRE qqq> conditional-expr qqqqqqk
        lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
        mqqqqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqq> .
             mq> CHECK ON qqwqqq> COMMIT qqwqqj
                            mqqq> UPDATE qqj

1  –  name

    The name of the constraint that you can refer to in other
    statements. When choosing a name, follow these rules:

    o  Use a name that is unique among all constraint names.

    o  Use any valid OpenVMS name. However, the name cannot end in a
       dollar sign ($) or underscore (_).

    o  Do not use any Oracle Rdb reserved words.

2  –  text

    A text string that adds a comment to the field definition. You
    can apply the description to the entire relation definition
    using the DESCRIPTION keyword. You can also apply a separate
    description to each field using the text markers before the
    DEFINE, CHANGE, or DELETE clause.

3  –  rse

    A record selection expression that defines which records of which
    relations the constraint applies to.

4  –  conditional-expression

    A conditional expression that describes the constraint to be
    placed on the records and relations defined by the RSE. For more
    information on Oracle Rdb conditional expressions, ask for HELP on
    Cond_expr.

5  –  CHECK

    Specifies whether the constraint is to be evaluated when you
    issue a statement such as STORE or MODIFY that updates the
    relation (UPDATE), or when you issue the COMMIT statement to
    write the change to the database (COMMIT). You can override this
    qualifier with the EVALUATING clause of the START_TRANSACTION
    statement. The default is UPDATE.
Close Help