文章目錄
- 環境
- 文檔用途
- 詳細信息
環境
系統平臺:Linux x86-64 Red Hat Enterprise Linux 7
版本:4.5
文檔用途
本內容介紹 Oracle條件索引 case when 如何在HGDB中轉換使用。
詳細信息
1、oracle 索引
create unique index I_GL_VOUCHER_7 on gl_voucher(case when voucherkind<>2 then pk_accountingbook||pk_vouchertype||year||adjustperiod||num end);
2、在HighGO Database中執行報錯
3、解決方案
轉換為符合HighGO Database 語法的條件索引
create unique index I_GL_VOUCHER_7 on gl_voucher ( pk_accountingbook,pk_vouchertype,year,adjustperiod,num ) where voucherkind<>2 ;