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