본문으로 바로가기
본문으로 바로가기

system.constraints

설명

모든 테이블에 있는 제약 조건 정보를 포함합니다.

임시 테이블에 정의된 제약 조건은 생성된 세션에서만 system.constraints에 표시됩니다. 이 항목들은 database 필드가 비어 있는 상태로 표시됩니다.

컬럼

예시

SELECT * FROM system.constraints LIMIT 2 FORMAT Vertical;
Row 1:
──────
database:    default
table:       hits
name:        check_hits
type:        CHECK
expression:  CounterID > 0

Row 2:
──────
database:    default
table:       hits
name:        assume_positive
type:        ASSUME
expression:  WatchID > 0