Skip to content

Instantly share code, notes, and snippets.

@tillklockmann
Last active May 24, 2020 19:03
Show Gist options
  • Save tillklockmann/7f6ff5534599c2450bb4b39063872dd8 to your computer and use it in GitHub Desktop.
Save tillklockmann/7f6ff5534599c2450bb4b39063872dd8 to your computer and use it in GitHub Desktop.
create stmt timestamp default
create table table_name (
id int(11) not null auto_increment primary key,
name varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
created_at TIMESTAMP not null default CURRENT_TIMESTAMP,
updated_at DATETIME null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment