 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LOG_APP_MODIFYBILLID') CREATE INDEX IX_LOG_APP_MODIFYBILLID ON T_LOG_APP ( FMODIFYBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LOG_ARCHIVE_MODIFYBILLID') CREATE INDEX IX_LOG_ARCHIVE_MODIFYBILLID ON T_LOG_ARCHIVE ( FMODIFYBILLID );
