Jump to content

prefix a value with zeros


freelance84

Recommended Posts

 

Is it possible to have a field (int) to start with 2 zeros?

 

eg,

 

00123

 

I have tried inputting the above value, but the sql table automatically rids them and inputs 123??

datatype should be varchar for that. By the way you can prefix "00" in code, while you fetch data from the database

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.