What is the difference between a primary key and a unique constraint?

Tim picture Tim · Aug 20, 2009 · Viewed 41.8k times · Source

Someone asked me this question on an interview...

Answer

Håvard picture Håvard · Aug 20, 2009

Primary keys can't be null. Unique keys can.