
 EXEC P_ALTERPK 'PK_T_ER_OUTSTDCTRLUSER', 'T_ER_OUTSTDCTRLUSER', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_OUTSTDCTRL_ENTRYID') CREATE UNIQUE INDEX IDX_ER_OUTSTDCTRL_ENTRYID ON T_ER_OUTSTDCTRLUSER ( FENTRYID ,FBASEDATAID );
