Skip to content

Instantly share code, notes, and snippets.

@ishiis
Last active September 7, 2017 16:25
Show Gist options
  • Save ishiis/c332bf1ef94476504b52aa78cb9cb98b to your computer and use it in GitHub Desktop.
Save ishiis/c332bf1ef94476504b52aa78cb9cb98b to your computer and use it in GitHub Desktop.
Android 作成 Gist
$ 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