IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AP_BUSBILLENTRY' AND KSQL_INDNAME = 'IDX_AP_BUSE_MOSTSRCBUSBILLID') CREATE INDEX IDX_AP_BUSE_MOSTSRCBUSBILLID ON T_AP_BUSBILLENTRY ( FMOSTSRCBUSBILLID );