Reputation: 190
I have a column named unique_id which can take values,
16-01
16-10,
16-250,
16-1594
etc
16 is the year(eg.2016) and 01 is a count for something in this year. I manage to get this format using a BEFORE INSERT TRIGGER. Now I want to have 4 char format in count number like
16-0001
16-0010
16-0250
16-1594
How can I manage this formatting?
Upvotes: 2
Views: 112