메인 콘텐츠로 건너뛰기

설명

모든 테이블에 존재하는 제약 조건에 대한 정보를 포함합니다. 임시 테이블(temporary tables)에 정의된 제약 조건은 생성된 세션에서만 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
마지막 수정일 2026년 6월 10일