题目:
表结构:
CREATE TABLE `action` ( userId varchar(25) DEFAULT NULL comment '用户id', visitDate varchar(25) DEFAULT NULL comment '浏览日期', visitCount int(11) DEFAULT NULL comment '浏览次数' ) ENGINE = InnoDB AUTO_INCREMENT = 8 DEFAULT CHARSET = utf8mb4;
表数据:
INSERT INTO action (`userId`, `visitDate`, `visitCount`) VALUES ('u01', '2017/1/21', 5); INSERT INTO action (`userId`, `visitDate`, `visitCount`) VALUES ('u02', '2017/1/23', 6); INSERT INTO action (`userId`, `visitDate`, `visitCount`) VALUES ('u03', '2017/1/22', 8); INSERT INTO action (`userId`, `visitDate`, `visitCount`) VALUES