摘要: 参考:https://mybatis.org/mybatis-3/zh/dynamic-sql.html 通过 if, choose, when, otherwise, trim, where, set, foreach等标签,可组合成非常灵活的SQL语句 一、if:根据条件作为 where 子句的 阅读全文
posted @ 2021-05-19 20:02 飞翔在天 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 参考:https://mybatis.org/mybatis-3/zh/sqlmap-xml.html 一、select <select id="selectPerson" parameterType="int" resultType="hashmap"> SELECT * FROM PERSON 阅读全文
posted @ 2021-05-19 19:52 飞翔在天 阅读(126) 评论(0) 推荐(0) 编辑
摘要: POM配置 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.6</version> </dependency> <dependency> <groupId>org.my 阅读全文
posted @ 2021-05-19 19:45 飞翔在天 阅读(73) 评论(0) 推荐(0) 编辑