 EXEC P_ALTERPK 'PK_T_RIM_IDB_DETAIL', 'T_RIM_IDB_DETAIL', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_IDB_DETAIL') CREATE INDEX IDX_RIM_IDB_DETAIL ON T_RIM_IDB_DETAIL ( FORG_ID ,FDEAL_TIME );

