Codington
0 of 8 problems solved • 0%

Exercise prompt

Set a Default Retry Count

A DEFAULT supplies a value when the INSERT column list leaves that column out. You can also give a particular row its own value.

Example

CREATE TABLE jobs (id integer, attempts integer DEFAULT 1); INSERT INTO jobs (id) VALUES (7);

Your task

Create services with id integer and retries integer, in that order. Set the default retry count to 0. Insert ID 1 using the default and ID 2 with three retries.

Opening the database…