Last active
May 24, 2020 19:03
-
-
Save tillklockmann/7f6ff5534599c2450bb4b39063872dd8 to your computer and use it in GitHub Desktop.
create stmt timestamp default
This file contains hidden or 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
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