Created
July 10, 2018 14:45
-
-
Save s1s1ty/674a3650d600c18cb19656369d762eef to your computer and use it in GitHub Desktop.
table create
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
CREATE DATABASE IF NOT EXISTS `go-mysql-crud` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; | |
USE `go-mysql-crud`; | |
/* Create table for `posts` */ | |
DROP TABLE IF EXISTS `posts`; | |
CREATE TABLE `posts` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, | |
`content` longtext COLLATE utf8_unicode_ci NOT NULL, | |
PRIMARY KEY (`id`) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment