Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Primary keys – the basics
Single-column primary keys
12. ...but one there should be!
Multi-column primary keys
NOT NULL
Review

Instruction

Good. As you might have figured out, it's impossible to create a table with two or more primary keys. However, there are other ways to make two columns unique. You'll get to know them in another course.

Is it possible to create a table without a primary key? Certainly. Up to this point, we've only created tables without primary keys since we hadn't introduced them. It is, however, advisable to have a primary key in each table. From now on, let's keep to that rule.

Exercise

Click the Next exercise button to continue.