Last active
September 7, 2017 16:25
-
-
Save ishiis/c332bf1ef94476504b52aa78cb9cb98b to your computer and use it in GitHub Desktop.
Android 作成 Gist
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
$ mysql --version | |
mysql Ver 15.1 Distrib 5.5.52-MariaDB, for Linux (x86_64) using readline 5.1 | |
DROP TABLE article; | |
CREATE TABLE IF NOT EXISTS article ( | |
id INT(11) NOT NULL AUTO_INCREMENT, | |
title VARCHAR(50) DEFAULT NULL, | |
created_datetime DATETIME NOT NULL, | |
updated_datetime DATETIME NOT NULL, | |
PRIMARY KEY(id) | |
); | |
CREATE TABLE IF NOT EXISTS article ( | |
id INT(11) NOT NULL AUTO_INCREMENT, | |
title VARCHAR(50) DEFAULT NULL, | |
created_datetime DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
updated_datetime DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
PRIMARY KEY(id) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment