SELECT BOARD_ID, WRITER_ID, TITLE, PRICE,
CASE
WHEN STATUS = 'SALE' THEN '판매중'
WHEN STATUS = 'RESERVED' THEN '예약중'
WHEN STATUS = 'DONE' THEN '거래완료'
END AS STATUS
FROM USED_GOODS_BOARD
WHERE CREATED_DATE = DATE_FORMAT('2022-10-05', '%y-%m-%d')
ORDER BY BOARD_ID DESC
;
Python
복사
WHERE CREATED_DATE = '2022-10-05'
위의 쿼리도 가능하다