I have a product purchasing system and I want to have a unique identifier with the format PID*n*, where n is an autoincrementing number.
- PID00001
- PID00002
- PID00003
How can this be done with VB6 and MySQL?
I have a product purchasing system and I want to have a unique identifier with the format PID*n*, where n is an autoincrementing number.
How can this be done with VB6 and MySQL?
This is not possible. You can either prefix and pad your auto-increment integer or have two separate columns that are combined by a trigger. See this answer for a better explanation.