Codington
0 of 8 problems solved • 0%

Exercise prompt

Create a Table

CREATE TABLE creates an empty table. Give each column a name and a type, and separate the columns with a comma. Here, integer stores a whole number and text stores a name.

Example

CREATE TABLE pets ( id integer, nickname text );

Your task

The editor already defines the id column. Add a second column called name with the type text. Then choose Run SQL. Check that the empty table has two headings, id and name.

If you ran the starter first, choose Reset exercise to remove the table and restore the starter. Then add your column and run it again.

Opening the database…