case when
Posted wangchuanfu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了case when相关的知识,希望对你有一定的参考价值。
<select id="getLimitPage" resultMap="limitFieldBeanSubMap" parameterClass="LimitField" > <include refid="be_fy"/> select T_LIMIT_FIELD.*, ( case state when ‘N‘ then ‘下线‘ when ‘Y‘ then ‘上线‘ end ) as stateStr from T_LIMIT_FIELD where IS_DELETE=‘N‘ <include refid="whereLimitList" /> order by ADD_TIME desc <include refid="ed_fy"/> </select>
以上是关于case when的主要内容,如果未能解决你的问题,请参考以下文章