ITeye博客

系统从mysql移置到oracle的问题总结

ileson · 2010-05-28 11:12 · Database · 数据库 · Markdown

1、oracle 关键字 凡涉及到oracle关键字的,都要用“”双引号括起来。 如果程序中用hibernate 管理与oracle 的连接 配置文件:


   <property name="comment" column='"COMMENT"' type="string"></property>
   

如果程序中有sql语句:


     String sql=" select \"COMMENT\" from emp_info";
   

2、自动增长


    create sequence HIBERNATE_SEQUENCE increment by 1 start with 1 nomaxvalue nocycle cache 10;--创建序列(hibernate 管理连接)
    

3、sql语法的差异


      between to_date('2010-04-23','yyyy-mm-dd') and to_date('2010-04-24','yyyy-mm-dd')--查询某时间段要转换格式
       between to_date('2010-04-23','yyyy-mm-dd HH24:MI:SS') and to_date('2010-04-24','yyyy-mm-dd HH24:MI:SS')--
    

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。