Using the system table CONSTRAINTS, you can determine the following database information, among other things:
All conditions of
the columns of table CUSTOMER that represent explicit value checks
SELECT
definition
FROM DOMAIN.CONSTRAINTS
WHERE tablename = 'CUSTOMER'
Constraints (integrity conditions) that relate to NOT NULL definitions, primary keys, UNIQUE definitions or referential constrains are not found with this SELECT statement.
NOT-NULL columns: see COLUMNS
Primary keys: see COLUMNS
UNIQUE columns: see INDEXES
Referential constraint: see FOREIGNKEYS
Columns in a referential constraint: see FOREIGNKEYCOLUMNS
Constraint of a domain: see DOMAINCONSTRAINTS