ORDER BY 에 조건 걸기 - 나중에 다시 작성할것

sokchokim·2022년 1월 25일
0

방법 1
order by 뒤에 case when

방법 2 trim prefix="ORDER BY"

<trim prefix="ORDER BY">
	<if test="order == 0">  ATW.reg_dt DESC </if>
    <if test="order == 1">  A.count_like  DESC </if>
</trim>
profile
盡人事待天命 그냥 내가 다시 보려고 만듦

0개의 댓글