EXEC P_ALTERPK 'PK_ER_OPERATION_L', 'T_ER_OPERATION_L', 'FPKID', '0';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_OPERATION_L') CREATE UNIQUE  CLUSTERED INDEX IDX_ER_OPERATION_L ON T_ER_OPERATION_L ( FID ,FLOCALEID );