mysql安装时为了支持中文字符集一定要选utf8mb4 COLLATE utf8mb4_0900_ai_ci

CREATE TABLE `wugong`.`Untitled` (
`id` bigint(0) NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`age` int(0) NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`version` int(0) NULL DEFAULT NULL,
`deleted` int(0) NULL DEFAULT NULL,
`create_time` datetime(0) NULL DEFAULT NULL,
`update_time` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

posted @ 2020-05-17 23:07  采姑娘的蘑菇  阅读(8848)  评论(0编辑  收藏  举报