Created
February 4, 2018 20:08
-
-
Save vdeturckheim/75051e8de4b5de47d207e530e03ce61c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE POSTS( | |
ID INTEGER PRIMARY KEY AUTOINCREMENT, | |
TITLE TEXT NOT NULL, | |
CONTENT TEXT | |
); | |
INSERT INTO POSTS (TITLE, CONTENT) | |
VALUES ('hello world', 'hello'); | |
INSERT INTO POSTS (TITLE, CONTENT) | |
VALUES ('my travel in the land of unicorns', 'unicorns are cool'); | |
CREATE TABLE USERS( | |
ID INTEGER PRIMARY KEY AUTOINCREMENT, | |
USERNAME TEXT NOT NULL, | |
PASSWORD TEXT NOT NULL | |
); | |
INSERT INTO USERS (USERNAME, PASSWORD) | |
VALUES ('admin', 'admin123'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment