Skip to content

Instantly share code, notes, and snippets.

@kasramp

kasramp/book.sql Secret

Created April 20, 2020 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasramp/729f9c072b37518ca3a3817a56414d48 to your computer and use it in GitHub Desktop.
Save kasramp/729f9c072b37518ca3a3817a56414d48 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS books (
id INTEGER AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(512) NOT NULL,
description VARCHAR(2048) NOT NULL,
author VARCHAR(256) NOT NULL,
year INTEGER NOT NULL,
edition INTEGER NOT NULL,
publisher VARCHAR(512) NOT NULL,
inserted DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) engine=InnoDB;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment