13 lines
264 B
MySQL
13 lines
264 B
MySQL
|
-- create a table
|
||
|
CREATE TABLE test(
|
||
|
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||
|
name TEXT NOT NULL,
|
||
|
archived BOOLEAN NOT NULL DEFAULT FALSE
|
||
|
);
|
||
|
|
||
|
-- add test data
|
||
|
INSERT INTO test (name, archived)
|
||
|
VALUES ('test row 1', true),
|
||
|
('test row 2', false);
|
||
|
|