The value specified for generated column 'name' in table 'myusers' is not allowed.
> USE test;
> CREATE TABLE `gc` ( `id` INT, `sqrt` FLOAT GENERATED ALWAYS AS SQRT(`id`) STORED);
> INSERT INTO `gc` (`id`) VALUES (1), (2), (3);
> SELECT * FROM `gc`;
+------+---------+
| id | sqrt |
+------+---------+
| 1 | 1 |
| 2 | 1.41421 |
| 3 | 1.73205 |
+------+---------+
# mysqldump test gc
... общие команды
--
-- Table structure for table `gc`
--
DROP TABLE IF EXISTS `gc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `gc` (
`id` int(11) DEFAULT NULL,
`sqrt` float GENERATED ALWAYS AS (sqrt(`id`)) STORED
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `gc`
--
LOCK TABLES `gc` WRITE;
/*!40000 ALTER TABLE `gc` DISABLE KEYS */;
INSERT INTO `gc` (`id`) VALUES (1),(2),(3);
/*!40000 ALTER TABLE `gc` ENABLE KEYS */;
UNLOCK TABLES;
SET @@SESSION.SQL_LOG_BIN = @MYSQLDUMP_TEMP_LOG_BIN;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
... общие команды