information_schema.table_constraints.constraint_type

mysql

type: VARCHAR NOT NULL
5.7-8

mariadb

type: NULL
Note:
Type of constraint; one of UNIQUE, PRIMARY KEY, FOREIGN KEY or CHECK.
© 2022 MariaDB
5.1-10.8
type: VARCHAR NOT NULL
Note:
Type of constraint; one of UNIQUE, PRIMARY KEY, FOREIGN KEY or CHECK.
© 2022 MariaDB
10.2-10.7

tidb

type: VARCHAR(64) NULL
Note:
The type of the constraint. The value can be UNIQUE, PRIMARY KEY or FOREIGN KEY. The UNIQUE and PRIMARY KEY information is similar to the execution result of the SHOW INDEX statement.
© 2022 PingCAP
4-6.1

postgres

type: CHARACTER_DATA NULL
Note:
Type of the constraint: CHECK, FOREIGN KEY, PRIMARY KEY, or UNIQUE
© 1996-2022 The PostgreSQL Global Development Group
10-15
type: CHARACTER_DATA
Note:
Type of the constraint: CHECK, FOREIGN KEY, PRIMARY KEY, or UNIQUE
© 1996-2022 The PostgreSQL Global Development Group
7.4-9.6

cockroachdb

type: unknown
Note:
Type of constraint: CHECK, FOREIGN KEY, PRIMARY KEY, or UNIQUE.NOT NULL constraints appear as CHECK constraints in this column.
© 2022 CockroachDB
20.1-21.2
Note:
Type of constraint: CHECK, foreign key, PRIMARY KEY, or UNIQUE.
© 2022 CockroachDB
2.1-19.2
Note:
Type of constraint: CHECK, FOREIGN KEY, PRIMARY KEY, or UNIQUE.
© 2022 CockroachDB
1-2

mssql

type: VARCHAR(11) NULL
Note:
Type of constraint: CHECK UNIQUE PRIMARY KEY FOREIGN KEY
© Microsoft 2022
azuresqldb-current-sql-server-ver15