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!

how can I force leading zeros on an int type?

Status
Not open for further replies.

hoggle

Programmer
Jul 13, 2001
124
US
I'm creating some new tables and I want to store leading zeros on an int field, is this possible or do I have to use a varchar or equivilent?

thanks
 
INT datatype will not store the leading zeros. You will have to use a CHAR or VARCHAR datatype.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top