HP NonStop SQL/MX Messages Manual page 37

Table of Contents

Advertisement

Data Definition Language (DDL) Messages (1000
through 1999)
SQL 1041
1041 The primary key has already been defined.
Cause. You attempted to add a primary key to a table that already has a primary key.
Effect. The operation fails.
Recovery. None.
SQL 1042
1042 All PRIMARY KEY or UNIQUE constraint columns must be NOT
NULL.
Cause. You did not specify NOT NULL on one or more columns that are included in a
UNIQUE or PRIMARY KEY constraint.
Effect. The operation fails.
Recovery. Reissue the statement with NOT NULL specified for all columns that are in
the PRIMARY KEY and UNIQUE constraints.
SQL 1043
1043 Constraint constraint-name already exists.
Where constraint-name is the name of a column constraint or table constraint.
Cause. You assigned the same constraint name to two constraints on the same table.
Constraint names must be unique among all the constraints for a table.
Effect. The operation fails.
Recovery. Make all the constraint names for the table unique. Use SHOWDDL to see
the names of existing constraints.
SQL 1044
1044 Constraint constraint-name could not be created because
the referenced columns in the referenced table are not part
of a unique constraint.
Where constraint-name is the name of a column constraint or table constraint.
Cause. The columns that constraint-name references in the referenced table are
not part of a unique constraint.
Effect. The operation fails.
HP NonStop SQL/MX Messages Manual—640324-001
3- 11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop sql/mx 3.0

Table of Contents