一.测试数据 CREATE TABLE `test_orderdetail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) DEFAULT NULL, `product_name` varchar(100) DEFAULT NULL, `cnt` int(11) DEFAULT NULL, `create_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_orderid_productname` (`product_name`