AWS MySQL
MySQL IF함수
iminu
2022. 5. 17. 17:25
if함수 pages 가 300보다크면 long 아니면 short로 나오게 하고 싶다.
select *, if(pages >= 300, 'long', 'short')
from books;