Mysql
 sql >> Database >  >> RDS >> Mysql

Come faccio a mostrare i vincoli univoci di una tabella in MySQL?

select distinct CONSTRAINT_NAME
from information_schema.TABLE_CONSTRAINTS
where table_name = 'table_name' and constraint_type = 'UNIQUE';