随笔分类 - Mybatis
摘要: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
阅读全文
摘要:1、MyBatis第一个程序 1.1、首先创建Mybatis-config.xml文件 <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
阅读全文

浙公网安备 33010602011771号