How to use custom sequence name with GENERATED BY DEFAULT AS IDENTITY #7949
Replies: 3 comments 5 replies
-
Why do you need to know that, if you cannot manipulate it, or do anything with it? It is system object and |
Beta Was this translation helpful? Give feedback.
-
This is not possible, as Karol says, the backing generator of an identity column and its name are an implementation detail. If you want to use a custom sequence name, you cannot use an identity column, and instead you need to use a custom trigger (the way of defining auto-increment columns before the introduction of identity columns). Maybe you should file an improvement request with the maker of the tool (it looks like DBeaver) to hide these system sequences (just like it does for "normal" system sequences with It looks like this tool is currently excluding sequences with |
Beta Was this translation helpful? Give feedback.
-
I want to use a custom name to reseed the sequence for the table at any given time. Before identity I could alter the sequence itself and change the start value. I could change the RDB$6 sequence as well but now I need to figure out which sequence is being used by my table to achieve this. |
Beta Was this translation helpful? Give feedback.
-
Hi
when running this script in Firebird 4 it generated a new sequence for the table.
The sequence is always named RDB$(number of tables created by GENERATED BY DEFAULT AS IDENTITY)
However I want to be able to see which sequence is for what in my database so I want to use a custom name for this for example
GEN_USERS_USER_ID
Is there any way to achieve this or to rename the generated sequence?
Beta Was this translation helpful? Give feedback.
All reactions