I wrote a script to upload data from csv file to a column in mysql database, pin_code. The pin_code is set to varchar and while inserting into the db, the number 0 before any value has not entered into the db.
for example 012345, was entered as 12345. The pin_code strlen is 6 digits. Any mysql statement to make the change to such columns if the strlen is 5, to add a 0 in front of it? The database is live now. Appreciate any help.
Something like