 EXEC P_ALTERPK 'PK_T_RIM_SIGN_EXTRA_LOG', 'T_RIM_SIGN_EXTRA_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_EXTRA_SERIAL') CREATE INDEX IDX_RIM_EXTRA_SERIAL ON T_RIM_SIGN_EXTRA_LOG ( FSERIAL_NO );

