sql语句中转码:
to_char(record_time,'yyyy-mm-dd hh24:mi:ss') as record_time
代码中转码:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String time=sdf.format(index.getRecordTime());
addData.setRecordTime(time);
sql语句中转码:
to_char(record_time,'yyyy-mm-dd hh24:mi:ss') as record_time
代码中转码:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String time=sdf.format(index.getRecordTime());
addData.setRecordTime(time);