ALTER TABLE table_name ADD UNIQUE INDEX(column1, column2);