I have a table with two int values that are IDs. On their own these IDs can show up any number of times in the table, but together they should only ever appear once.
Try this: ALTER TABLE table_name ADD CONSTRAINT uc_name UNIQUE (col1,col2)
ALTER TABLE table_name ADD CONSTRAINT uc_name UNIQUE (col1,col2)