Codington
0 of 8 problems solved • 0%

Exercise prompt

Omit a Value or Send NULL

The prepared table has id integer and status text DEFAULT 'queued'. Its status column allows NULL. Omitting the column uses the default. Writing NULL explicitly stores a missing value.

Your task

Insert three rows into services. For ID 1 omit the status, for ID 2 supply NULL, and for ID 3 supply ready. Compare the three status cells.

Opening the database…