Skip
Arish's avatar

255. Practice - PRIMARY KEY


Exercise: Create with PK

Create courses table with primary key.

Solution

sql
1CREATE TABLE courses (
2  course_id INTEGER PRIMARY KEY,
3  course_name TEXT NOT NULL
4);