-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
16 lines (13 loc) · 833 Bytes
/
init.sql
File metadata and controls
16 lines (13 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CREATE DATABASE IF NOT EXISTS circle_test;
DROP TABLE IF EXISTS circle_test.book;
CREATE TABLE IF NOT EXISTS circle_test.book (
id BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
title TEXT NOT NULL,
author TEXT NOT NULL,
created DATETIME
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO circle_test.book (id, title, author, created) VALUES (1, 'Ancillary Mercy', 'Ann Leckie', NOW());
INSERT INTO circle_test.book (id, title, author, created) VALUES (2, 'N. K. Jemisin','The Fifth Season', NOW());
INSERT INTO circle_test.book (id, title, author, created) VALUES (3, 'Ken Liu', 'The Grace of Kings', NOW());
INSERT INTO circle_test.book (id, title, author, created) VALUES (4, 'Charles E. Gannon', 'Raising Caine', NOW());
INSERT INTO circle_test.book (id, title, author, created) VALUES (5, 'Fran Wilde', 'Updraft', NOW());