Skip to content

Instantly share code, notes, and snippets.

@ryo-utsunomiya
Created March 17, 2014 02:06
Show Gist options
  • Save ryo-utsunomiya/9592735 to your computer and use it in GitHub Desktop.
Save ryo-utsunomiya/9592735 to your computer and use it in GitHub Desktop.
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