D
Dave
How do I enforce uniqueness on a composite index?
For example, I have a table called orderitems. It has an orderitemid, a
orderid, and an itemid column. The orderitemid is the primary key. I want
to ensure that any combination of orderid and itemid is unqiue.
How can I do this?
For example, I have a table called orderitems. It has an orderitemid, a
orderid, and an itemid column. The orderitemid is the primary key. I want
to ensure that any combination of orderid and itemid is unqiue.
How can I do this?