|
A consulta abaixo lista as restrições de verificação da tabela.
Query below lists table check constraints.
Consulta - Query
SELECT TABSCHEMA CONCAT '.' CONCAT TABNAME AS TABLE
, COLNAME AS COLUMN_NAME
, DEFAULT AS DEFAULT_VALUE
FROM SYSCAT.COLUMNS
WHERE TABSCHEMA NOT LIKE 'SYS%'
AND DEFAULT IS NOT NULL
ORDER BY TABSCHEMA
, TABNAME, COLNAME
|
Colunas
- tabela - esquema e nome da tabela
- column_name - nome da coluna
- default - expressão SQL que define este valor padrão
Linhas
- Uma linha representa uma coluna
- Escopo das linhas: a consulta retorna todas as colunas com valores padrão
- Ordenado por esquema e nome da tabela, nome da coluna
|
Columns
- table - schema and table name
- column_name - name of the column
- default - SQL expression that defines this default value
Rows
- One row represents one column
- Scope of rows: query returns all columns with default values
- Ordered by table schema and name, column name
|
Resultado - Sample results

Copyright © Dataedo.
|