oracle转mysql

*、oracle转mysql之Unknown table 'hibernate_sequence' in field list

方言尚未切换为mysql的方式
参考:http://chinrui.iteye.com/blog/1915934

*、oracle转mysql之hibernate中mysql配置date

hbm-timestamp,java实体类用timestamp,数据库用datetime即可
参考:http://blog.csdn.net/chuanren1991/article/details/49885479

*、oracle转mysql之Field 'ID' doesn't have a default value

需要配置mysql
参考:http://blog.csdn.net/god8816/article/details/8593419

*、oracle转mysql之LobHandler for mysql

oracle需要使用OracleLobHandler而mysql需要配置为lob.DefaultLobHandler
并且注释掉nativeJdbcExtractor
参考:http://www.th7.cn/db/mysql/201512/162347.shtml

*、oracle转mysql之oracle老数据导入

好麻烦的日期字段啊啊啊

*、oracle转mysql之Cannot add or update a child row: a foreign key constraint fails

带有外键无法按普通方法导入-利用Navicat时需要在高级选项中选中"使用外键"选项即可选中

*、oracle转mysql之FUNCTION to_date does not exist 

扫描二维码关注公众号,回复: 226400 查看本文章
to_date变为str_to_date即可,对了还有pattern,hah 
参考:http://java-cn.iteye.com/blog/1504563

*、oracle转mysql之FUNCTION to_number does not exist 

to_number改为convert(字符参数 , SIGHED)即可(cast貌似不靠谱)
参考:www.baidu.com

*、oracle转mysql之decode noe exist

decode等价于case 列 when key then value eles end as 别名
参考:http://www.linuxidc.com/Linux/2010-10/29328.htm

*、oracle转mysql之rownum 哈哈

rownum在mysql等价的是limit
参考:常识

猜你喜欢

转载自lbovinl.iteye.com/blog/2380938