Mybatis Joint and Nested Queries (Multi-table Operations)
0. Data Preparation /*Table structure for table `user` */ DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL auto_increment, `username` varchar(32) NOT NULL, `birthday` datetime default NULL, `sex` varchar(10) default NULL, `address` varchar(256) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table Read more