 EXEC P_ALTERPK 'PK_T_ER_TIMELINEDATA_L', 'T_ER_TIMELINEDATA_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_TLD_L_ID') CREATE INDEX IDX_ER_TLD_L_ID ON T_ER_TIMELINEDATA_L ( FID ,FLOCALEID );
