IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FA_APPLY_REPAIR_ENTRY' AND KSQL_INDNAME = 'IDX_FA_REPAIR_REALCARD')
CREATE INDEX IDX_FA_REPAIR_REALCARD ON T_FA_APPLY_REPAIR_ENTRY (FREALCARDID );