How to increase database Sequence via Agent in Cloud?
Content
Hi all,
Certain tables are designed with a sequence as Primary Key, e.g. In table GTM_TR_PROD_CLASSIFICATION, GTM_TR_PROD_CLASSIFICATION_GID is the primary key and is apparently a sequence.
In certain use cases, we have to use Direct SQL Update in an agent to insert records in this table. But if we do that, the sequence has to keep up with the latest value. Any advice to reset the sequence to latest value?
Of course we can use a string like "A0001" to have our own set of GTM_TR_PROD_CLASSIFICATION_GID. But I am not sure if that will break any logic within system.
Tagged:
0