DB2支持Oracle递归函数
DB2创建数据库脚本(示例创建:TESTDATABASE )
db2 CREATE DATABASE TESTDATABASE AUTOMATIC STORAGE YES ALIAS TESTDATABASE PAGESIZE 32 K
db2 connect to TESTDATABASE user db2inst1 using db2inst1
db2 update db cfg for TESTDATABASE using LOGFILSIZ 10240
db2 update db cfg for TESTDATABASE using LOGPRIMARY 50
db2 update db cfg for TESTDATABASE using LOGSECOND 20
db2 create bufferpool poo132k immediate size 10000 pagesize 32k
db2 create temporary tab1espace tempspace2 pagesize 32k bufferpool poo132k
db2 commit work
db2 connect reset
使DB2支持 start with * connect by *语法
应用代码使用了oracle递归函数,不修改代码实现支持
db2set DB2_COMPATIBILITY_VECТOR=08
参考IBM官方文档:https://www.ibm.com/docs/zh/db2/11.5?topic=features-db2-compatibility-vector-registry-variable