MySQL转换Oracle的注意事项,mysqloracle
limit--->oracle分页,dateformat--->oracle日期格式化,
now()---->获取系统时间,
在MySQL里不是关键字到oracle里就是关键字了
mysql | oracle |
order by id desc limit #{offset},#{pageSize} | where rownum <= #{offset}+#{pageSize} ) where rn >#{offset}) order by id DESC |
#{startDate} t.createtime |
to_date('#{startDate}','yyyy-mm-dd HH24:MI:SS') to_char(t.createtime,'yyyy-MM-dd') as createtime |
now() | sysdate |
type在MySQL中不是关键字 | type 在oracle里是关键字 需要在SQL语句中将关键字全部大写并且加上双引号 |
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。