 EXEC P_ALTERPK 'PK_OPEN_3RDAPPSAPIS', 'T_OPEN_3RDAPPSAPIS', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_OPEN_3RDAPPSAPIS') CREATE INDEX IDX_OPEN_3RDAPPSAPIS ON T_OPEN_3RDAPPSAPIS ( FID );