留存—
参考地址
数据准备:
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`id` varchar(32) DEFAULT NULL,
`name` varchar(30) DEFAULT NULL,
`subject` varchar(30) DEFAULT NULL,
`score` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
插入数据
INSERT INTO `test` VALUES ('1', '张三', '语文', '98');
INSERT INTO `test` VALUES ('2', '张三', '数学', '80');
INSERT INTO `test` VALUES ('3', '张三', '英语', '90');
INSERT INTO `test` VALUES ('4', '李四', '语文', '88');
INSERT INTO `test` VALUES ('5', '李四', '数学', '86');
INSERT INTO `test` VALUES ('6', '李四', '英语&#