Introduction
Boolean
Date and time
36. Date - create the column
Summary

Instruction

Good! Now you can try to insert your own date column.

Exercise

Peter needs a more precise payment information system. Let's create a table called payment with the following columns: user_id (integer), amount (decimal with 4 digits before the decimal and 2 after it), day (date).

Stuck? Here's a hint!

Type

CREATE TABLE payment (
    user_id int,
    amount decimal(6,2),
    day date
);

Console

Code editor

Result

TableConsole