当手写复杂SQL时多数据库类型判断举例
This commit is contained in:
@@ -12,4 +12,12 @@
|
|||||||
ORDER BY ${sqlMap.order.toSql()}
|
ORDER BY ${sqlMap.order.toSql()}
|
||||||
</select> -->
|
</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>
|
</mapper>
|
||||||
Reference in New Issue
Block a user