본문 바로가기

프로그래밍

MySQL의 DateFormet

반응형
date_format(from_unixtime(tt),'%Y%m%d')

SELECT date_format(from_unixtime(tt),'%Y%m%d') FROM TABLE

tt 필드 = unixtime


반응형