初始化数据库语句:

DROP TABLE IF EXISTS `t_person`; CREATE TABLE `t_person` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `age` int(11) DEFAULT NULL, `birthdate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `isMale` bit(1) DEFAULT b'0', `height` double DEFAULT NULL, `department` varchar(255) DEFAULT 'dev', `desc` varchar(255) DEFAULT NULL, `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `index_name` (`name`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of t_person -- ---------------------------- INSERT INTO `t_person` VALUES ('1', 'Perter', '18', '2019-09-26 16:13:28', 0, null, 'dev', null, '2019-09-26 16:20:00'); INSERT INTO `t_person` VALUES ('2', 'Alan', null, '2019-09-26 16:14:05', '