1、Mybatis中數據庫語句的選擇 使用:
<choose>
<when test="relationType=='L'">
<choose>
<when test="pe=='EX">
= c.code
</when>
<otherwise >
=c.ex
</otherwise>
</choose>
</when>
<otherwise >
= c.delive
</otherwise>
</choose>
2、分區排序
Row_num() over ():
ROW_NUMBER() OVER (PARTITION BY V.CODE ORDER BY V.MODIFYTIME) ROW_NUM