I have a table in that on two columns i have to put unique key how is it possible.
i have search so many time but not get
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Michael GriffithsRank #1,251 · 1.4K reputationPosted Apr 7, 2016, 11:38 AM EDT
ALTER TABLE Persons
ADD CONSTRAINT uc_PersonID UNIQUE (P_Id,LastName)