Created
March 17, 2014 02:06
-
-
Save ryo-utsunomiya/9592735 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
title VARCHAR(256) NOT NULL, | |
body TEXT NOT NULL, | |
created_at DATETIME NOT NULL, | |
updated_at DATETIME NOT NULL | |
); | |
INSERT INTO posts( | |
title, body, created_at, updated_at | |
) VALUES( | |
'test title', | |
'test body', | |
NOW(), | |
NOW() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment