系统从mysql移置到oracle的问题总结
1、oracle 关键字
凡涉及到oracle关键字的,都要用“”双引号括起来。
如果程序中用hibernate 管理与oracle 的连接
配置文件:
<property name="comment" column='"COMMENT"' type="string"></property>
欢迎大家阅读《系统从mysql移置到oracle的有关问题总结》,跪求各位点评,by 搞代码
如果程序中有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')--