摘要:
参考:https://mybatis.org/mybatis-3/zh/dynamic-sql.html 通过 if, choose, when, otherwise, trim, where, set, foreach等标签,可组合成非常灵活的SQL语句 一、if:根据条件作为 where 子句的 阅读全文
摘要:
参考:https://mybatis.org/mybatis-3/zh/sqlmap-xml.html 一、select <select id="selectPerson" parameterType="int" resultType="hashmap"> SELECT * FROM PERSON 阅读全文
摘要:
POM配置 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.6</version> </dependency> <dependency> <groupId>org.my 阅读全文