摘要:
Mybatis多对一的查询主要有两种 第一种是查询嵌套处理,另一种是按照结果嵌套处理 如今一般第二种较为主流 首先创建两个表,以教师表和学生表为例 --教师表 create table teacher( id int(15) primary key default null, name varcha 阅读全文
摘要:
select B.id as blog_id, B.title as blog_title, B.author_id as blog_author_id, A.id as author_id, A.username as author_username, A.password as author_p 阅读全文