 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AP_APPLYPAYBILLENTRY' AND KSQL_INDNAME = 'IDX_AP_APPLYE_SRC') CREATE INDEX IDX_AP_APPLYE_SRC ON T_AP_APPLYPAYBILLENTRY ( FSRCBILLID,FSRCBILLENTRYID );