 EXEC P_ALTERPK 'PK_T_IM_INVQUERYFILTER', 'T_IM_INVQUERYFILTER', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_IM_INVQUERYFILTER' AND KSQL_INDNAME = 'IDX_INVQUERY_ENTRY_FID') CREATE INDEX IDX_INVQUERY_ENTRY_FID ON T_IM_INVQUERYFILTER ( FID );
