Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input mask for field in mysql db

Status
Not open for further replies.

gogirl

MIS
Jun 5, 2002
46
US
Hello kind and intelligent person

I would like to put an input mask on a field in my mysql database so that when a user enters a number like 55 it will automatically add the zeros in front.
(i.e. 55 -> 000055)

How can this be done?

Thanks,

gogirl
 
MySQL won't do that.

The the authors of MySQL have made a point of simplifying their developement efforts by reducing the number of functions the server provides (compared to other database servers). A big part of their methodology seems to be that anything which is a display format issue is best handled in whatever programming language your user interface is using.

Your requirement seems to fall in that category. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top