database/postgres_ppas

postgresql 날짜 변환

공간사랑 2016. 5. 26. 12:49
반응형



select to_char(now(), 'YYYY-MM-DD HH24:MI:SS')


결과)


"2016-05-26 12:48:31"



select to_char(now(), 'YYYY-MM-DD HH24:MI:SS')

결과)


"2016-05-26 13:18:22"

 

 

select to_char(now(), 'YYYY-MM-DD HH:MI:SS')

결과)

"2016-05-26 01:18:48"

반응형