Skip
Arish's avatar

254. PRIMARY KEY Details


Primary Key Rules

  1. Must be unique
  2. Cannot be NULL
  3. One per table
  4. Usually numeric
sql
1CREATE TABLE orders (
2  order_id INTEGER PRIMARY KEY,
3  customer_id INTEGER
4);