当手写复杂SQL时多数据库类型判断举例

This commit is contained in:
thinkgem
2020-07-08 23:48:16 +08:00
parent c260d92743
commit 941ac4838d

View File

@@ -12,4 +12,12 @@
ORDER BY ${sqlMap.order.toSql()}
</select> -->
<!-- 判断数据库类型例子
<select id="findList" resultType="Log">
<if test="global.dbName == 'mysql'"></if>
<if test="global.dbName == 'oracle'"></if>
<if test="global.dbName == 'mssql'"></if>
<if test="global.dbName == 'postgresql'"></if>
</select> -->
</mapper>