๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/164672
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT BOARD_ID, WRITER_ID, TITLE, PRICE, case
when STATUS = 'SALE' then 'ํ๋งค์ค'
when STATUS = 'RESERVED' then '์์ฝ์ค'
when STATUS = 'DONE' then '๊ฑฐ๋์๋ฃ'
end STATUS
from USED_GOODS_BOARD
where date_format(CREATED_DATE, '%Y-%m-%d') = '2022-10-05'
order by BOARD_ID desc
๋ฐ์ํ