0
I need to generate an 8-digit sequential number following the bank..
I have the column code in the table budget, has the value of ex: 1800000001 where 18 is the year and the rest is a sequential number, I need to check in the system which last registered budget and create a sequential number following, in the example is 1800000001, I want it to generate code 1800000002 and so on, as long as when the last number reaches two digits it replaces a 0, when 3, two zeroes, ex 1800000099, that number after the year has to contain 8 houses.
What’s the matter?
– Lucas de Carvalho
The problem is I don’t know how it generates the number in this way..
– Nicholas Ruschel Krüger