Instruction
Great, let's study the theory for a while.
We usually choose a single column to become our primary key. If we want to inform our database that a given column is supposed to be the primary key (often abbreviated as PK), we place the keywords PRIMARY KEY after the name and type of the column:
CREATE TABLE movie ( id INT PRIMARY KEY, title VARCHAR(40) );
Quite simple, right?
Exercise
You are now going to create your own table with a primary key.
Let's reconstruct our table movie so that it has the following columns:
film_idwhich is an integer number and the primary key,titlewhich is a field of up to 64 characters,yearwhich is an integer andgenrewhich is a text of up to 10 characters.
Stuck? Here's a hint!
Type
CREATE TABLE movie ( film_id int PRIMARY KEY, title varchar(64), year int, genre varchar(10) );



