1)jdbc
2)hibernate---ORM
3)mybatis----将sql提取到xml配置文件、动态sql、缓存,原名为Ibatis
4)DBUtils
5)JdbcTemplate
--------------------------------------------------------------------------------------------------------------------------------------------------------
1、模糊查询
<select id="selectUserByNameLike" parameterType="hashmap" resultType="User">
select <include refid="allColumn"/> from mb_user
where name like '%${name}%'
</select>
<select id="selectUserByNameLike1" parameterType="User" resultType="User">
select <include refid="allColumn"/> from mb_user
where name like '%${name}%'
</select>
2、< 、>、<=、>= 需要使用转义字符 < 、 > 、<= 、>=