DROP TABLE IF EXISTS `analyses`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `analyses`( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `modified` datetime DEFAULT, `created` datetime DEFAULT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */;
としていますが実際に日本語の入力をしてみるとデータに反映されません
mysql> select * from analyses; +----+------+---------------------+---------------------+ | id | name | modified | created | +----+------+---------------------+---------------------+ | 1 | | 2017-10-04 21:19:07 | 2017-08-24 00:00:00 | | 2 | | 2017-10-04 21:19:17 | 2017-08-24 00:00:00 | | 3 | | 2017-09-01 16:27:53 | 2017-09-01 16:27:53 | | 4 | | 2017-09-01 16:28:10 | 2017-09-01 16:28:10 | | 5 | | 2017-09-01 16:28:20 | 2017-09-01 16:28:20 | | 6 | | 2017-10-04 14:02:53 | 2017-10-04 14:02:53 | | 7 | | 2017-10-04 14:02:59 | 2017-10-04 14:02:59 | +----+------+---------------------+---------------------+ 7 rows in set (0.00 sec)
入力内容
LOCK TABLES `analyses` WRITE; /*!40000 ALTER TABLE `analyses` DISABLE KEYS */; INSERT INTO `analyses` VALUES (1,'あいうえお','2017-10-04 21:19:07','2017-08-24 00:00:00'),(2,'かきくけこ','2017-10-04 21:19:17','2017-08-24 00:00:00'),(3,'さしすせそ','2017-09-01 16:27:53','2017-09-01 16:27:53'),(4,'たちつてと','2017-09-01 16:28:10','2017-09-01 16:28:10'),(5,'なにぬねの','2017-09-01 16:28:20','2017-09-01 16:28:20'),(6,'はひふへほ','2017-10-04 14:02:53','2017-10-04 14:02:53'),(7,'まみむめも','2017-10-04 14:02:59','2017-10-04 14:02:59'); /*!40000 ALTER TABLE `analyses` ENABLE KEYS */; UNLOCK TABLES;
わかるかたご回答よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー