--- test information_schema.table_constraints ---- USE INFORMATION_SCHEMA; DESC TABLE TABLE_CONSTRAINTS; SELECT * FROM TABLE_CONSTRAINTS ORDER BY TABLE_NAME, CONSTRAINT_NAME; use public; CREATE TABLE test(i double, j string, ts timestamp time index, primary key(j)); use INFORMATION_SCHEMA; SELECT * FROM TABLE_CONSTRAINTS ORDER BY TABLE_NAME, CONSTRAINT_NAME; SELECT * FROM TABLE_CONSTRAINTS WHERE TABLE_NAME = 'test' ORDER BY TABLE_NAME, CONSTRAINT_NAME; use public; DROP TABLE test;