All Downloads are FREE. Search and download functionalities are using the official Maven repository.

db2.information_schema.TABLE_CONSTRAINTS.sql Maven / Gradle / Ivy

The newest version!
SELECT
  NULLIF(1, 1) AS CONSTRAINT_CATALOG,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.CONSTRAINT_SCHEMA) AS CONSTRAINT_SCHEMA,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.CONSTRAINT_NAME) AS CONSTRAINT_NAME,
  NULLIF(1, 1) AS TABLE_CATALOG,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.TABLE_SCHEMA) AS TABLE_SCHEMA,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.TABLE_NAME) AS TABLE_NAME,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.CONSTRAINT_TYPE) AS CONSTRAINT_TYPE,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.IS_DEFERRABLE) AS IS_DEFERRABLE,
  STRIP(SYSIBM.TABLE_CONSTRAINTS.INITIALLY_DEFERRED) AS INITIALLY_DEFERRED
FROM
  SYSIBM.TABLE_CONSTRAINTS
ORDER BY
  SYSIBM.TABLE_CONSTRAINTS.TABLE_SCHEMA,
  SYSIBM.TABLE_CONSTRAINTS.TABLE_NAME
WITH UR  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy