(Sprint Boot) how to use 'IF' of mysql in jpa

前端 未结 0 1664
鱼传尺愫
鱼传尺愫 2020-12-28 09:25
SELECT *, IF(parent_idx = 0, idx, parent_idx) AS order1
               FROM ida.post ORDER BY order1;

I want

相关标签:
回答
  • 消灭零回复
提交回复
热议问题