I don’t know what you mean by "next code" but maybe you’ll find what you’re looking for by consulting the Information Schema or the Catalogues of the system. If you are referring to an auto-increment field then see the sequence manipulation functions: https://www.postgresql.org/docs/current/functions-sequence.html
What do you mean "next code"?
– Glenys Mitchell
I don’t know what you mean by "next code" but maybe you’ll find what you’re looking for by consulting the Information Schema or the Catalogues of the system. If you are referring to an auto-increment field then see the sequence manipulation functions: https://www.postgresql.org/docs/current/functions-sequence.html
– anonimo