postgres-oracle
4、oracle迁移到postgres-oracle中使用的`decode`函数使用`case when`统一语法
[TOC] # oracle迁移到postgres-oracle中使用的`decode`函数使用`case when`统一语法 oracle中也有使用`case when`语法,使用`decode`函数比较简洁。 ## 1、oracle的`decode`语法 匹配`stu_type`为`1`的值的班 ......
5、oracle迁移到postgres-oracle中使用的`nvl`函数更改为统一的`coalesce`函数
[TOC] # oracle迁移到postgres-oracle中使用的`nvl`函数更改为统一的`coalesce`函数 `nvl`函数与`coalesce`函数都是值非空时,给默认值,oracle中也存在`coalesce`函数 ## 1、oracle的`nvl`函数 当成绩为空时,默认是0 ` ......