Ticket #11 (closed enhancement加强: fixed)

Opened 14 years ago

Last modified 14 years ago

oracle 转 pg 的一些注意事项

Reported by: lisiliang Owned by: lisiliang
Priority: major Milestone: PG 测试计划进程
Component: component1 Version:
Keywords: Cc:
Due Date: 13/01/2012

Description

1.oracle 的函数索引,需要检查,部分在pg 不支持

例如 (trunc(create_time)) ,trunc 函数需要处理。

2.字符编码问题 :

部分gbk了里的乱码,没有对应utf8编码,无法转入,需要人工干预。 ( 目前已经解决)

  1. pg 里没有rollback 语句,不会自动rollback ,需要应用里触发异常。

4.pg 里最好是所有的数据库请求用事务包装。( 待确认)

5.rownum -----> limit m,n

6.子查询需要定义别名 alias

  1. 表的连接方式 需要注意 : 外联接 需要采用 left out join 而不是 oracle 里的 a.id=b.id(+) 这种方式。

Change History

comment:1 Changed 14 years ago by lisiliang

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.