Mybatis的多对一和一对多嵌套查询
嵌套查询建表多对一一对多建表CREATE TABLE `teacher` (`id` INT(10) NOT NULL,`name` VARCHAR(30) DEFAULT NULL,PRIMARY KEY (`id`)) ENGINE=INNODB DEFAULT CHARSET=utf8INSERT INTO teacher(`id`, `name`) VALUES (1, '凯老师');CREATE TABLE `student` (`id` INT(10) NOT NULL,