oracle和mysql对时间与字符串的转换
1,oracle
to_date(#{item.value},'YYYY-MM-DD hh24-mi-ss')
to_char(CRERATE_TIME,'YYYY-MM-DD hh24-mi-ss')
2,mysql
STR_TO_DATE(#{item.value,jdbcType=${item.jdbcType}},'%Y-%m-%d %T')
date_format(BUILD_TIME,'%Y-%m-%d %T')
1,oracle
to_date(#{item.value},'YYYY-MM-DD hh24-mi-ss')
to_char(CRERATE_TIME,'YYYY-MM-DD hh24-mi-ss')
2,mysql
STR_TO_DATE(#{item.value,jdbcType=${item.jdbcType}},'%Y-%m-%d %T')
date_format(BUILD_TIME,'%Y-%m-%d %T')