1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| mysql> DROP TABLE IF EXISTS `websites`; Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql> CREATE TABLE `websites` ( -> `id` int(11) NOT NULL AUTO_INCREMENT, -> `name` char(20) NOT NULL DEFAULT '' COMMENT '', -> `url` varchar(255) NOT NULL DEFAULT '', -> `alexa` int(11) NOT NULL DEFAULT '0' COMMENT 'Alexa ', -> `country` char(10) NOT NULL DEFAULT '' COMMENT '', -> PRIMARY KEY (`id`) -> ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; Query OK, 0 rows affected (0.03 sec)
mysql> INSERT INTO `websites` VALUES -> ('1', 'Google', 'https://www.google.com.tw/', '129', 'TW'), -> ('2', '', 'https://shopee.tw/', '599', 'TW'), -> ('3', 'J.J.\'s Blogs', 'https://morosedog.gitlab.io/', '99999999', 'TW'), -> ('4', 'Facebook', 'https://zh-tw.facebook.com/', '4', 'USA'); Query OK, 4 rows affected (0.03 sec) Records: 4 Duplicates: 0 Warnings: 0
|