I'm doing maintenance on a PHP system with Mysql. I noticed that in the user table there is a field called code. This field stores as follows:
id_usuario | codigo_usuario
1 00001
And the last value:
id_usuario | codigo_usuario
7810 07810
As I could calculate, can it be in PHP or within the table itself so that the next records maintain this pattern? Ex:
id_usuario | codigo_usuario
7811 07811