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);
Create courses table with primary key.
1CREATE TABLE courses (
2 course_id INTEGER PRIMARY KEY,
3 course_name TEXT NOT NULL
4);