Postgre에서 날짜로부터 연도와 월을 추출하는 방법to_char() 함수를 사용하지 않는 SQL? sql을 선택합니다.SELECT "year-month" from table group by "year-month" AND order by date여기서 year-month - date "filename-01", "filename-12" 형식으로 cause work의 to_char를 선택하지만 "올바른" 순서는 선택하지 않습니다. to_char(timestamp_column, 'YYYY-MM') to_char(timestamp, 'YYYY-MM') 당신은 그 주문이 "옳지" 않다고 말하지만, 나는 왜 그것이 잘못되었는지 이해할 수 없습니다(적어도 10000년이 되기 전까지는).date_part(text, ..