Select col1 from tab1
Select col1, case when col2 = 1 then y end as col2 from tab1
이런식으로 컬럼 1개나 조건문 다르면 쿼리 찍어냄 ㅅㅂ

Jpa 한다면서 ibaits만도 못하게 쓰네 했다가

개욕먹었다

정직은 성역이다 ㅅㅂ