 EXEC P_ALTERPK 'PK_T_RIM_REDBLUE_RELATION', 'T_RIM_REDBLUE_RELATION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_REDBLUE_RELATION') CREATE INDEX IDX_RIM_REDBLUE_RELATION ON T_RIM_REDBLUE_RELATION ( FBLUE_INVOICE_CODE ,FBLUE_INVOICE_NO );