MySQL Forums
Forum List  »  Newbie

Database entry doesn't format as I want
Posted by: Ken Arck
Date: June 19, 2017 04:49PM

I have a field defined as VARCHAR(100) and I want to store various alphanumeric info there. Problem is the numbers I store must always be 2 digits (ie - 01,02, 23,etc)

But when I try to SET that field with a number that has a leading 0, it is stored as only 1 digit. How can I fix this?

Options: ReplyQuote


Subject
Written By
Posted
Database entry doesn't format as I want
June 19, 2017 04:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.