I got a mysql database column named country_id, like:
country_id
----------
1
2
59
435
2714
What I’m trying to accomplish now is to add leading zero’s to each ID, so the result would be:
country_id
----------
0001
0002
0059
0435
2714
Each ID should have max 4 digits. That’s it.
Is there any SQL statement I could use in PHPmyAdmin to update this country_id column in the way described above?
Best regards!
Declare
ZEROFILLon the column: