to_char(time,'YYYY-MM-DD hh24:mi:ss') as time1,
to_char(time,'YYYY-MM-DD') as time2,
to_char(time,'YYYY-MM-DD hh:mi:ss') as time3
timestamp去掉时区 即到时分秒 select current_timestamp(0)::timestamp without time zone;
to_char(time,'YYYY-MM-DD hh24:mi:ss') as time1,
to_char(time,'YYYY-MM-DD') as time2,
to_char(time,'YYYY-MM-DD hh:mi:ss') as time3
timestamp去掉时区 即到时分秒 select current_timestamp(0)::timestamp without time zone;