一个成熟项目 从oracle迁移到
1 oracle 中 WM_CONCAT() 转换成mysql 中 group_concat() Mysql连接 函数concat()
2 oracle 中 to_char(字符串) 可以直接去掉to_char()
oracle中的 to_char(date,'yyyy-MM-dd') --------------> Mysql 的 date_format(date,'%Y-%m-%d')
oracle中的 to_char(date,'yyyy-mm-dd HH:mm:ss') --------------> Mysql 的 date_format(date,'%Y-%m-%d %H-%i-%S')
oracle中的 to_date(date,'yyyy-MM-dd') --------------> Mysql 的 str_to_date(date,'%Y-%m-%d')
3 oracle 与mysql 排序 差异
=-========oracle 中=========
oracle 中 order by id asc 时,null默认被放在最后
oracle 中 order by id desc 时,null默认被放在最前
oracle 中 nulls first 时,强制null放在最前
oracle 中 nulls last 时,强制null放在最后
==========mysql 中 ===