I am using "PostgreSQL 9.3.5"
I have a Table(StackOverflowTable
) with columns (SoId,SoName,SoDob)
.
I want a Sequence generator
for column SoId
which is a Alpha-numeric value.
I want to auto increment a Alpha-Numeric Value in postgresql.
For eg : SO10001, SO10002, SO10003.....SO99999.
Edit:
If tomorrow i need to generate a Sequence which can be as SO1000E100, SO1000E101,...
and which has a good performance. Then what is the best solution!
Use sequences and default value for id: