Jump to content

MySQL Table Type


eRott

Recommended Posts

Hey,

 

Quick question. I have some values being written to a field in a database. Sometimes those values are just two zero's (00). I have the field type set as int(2). However, MySQL just rewrites those two zeros as a single zero (0). I need those two zeros to remain intact. Is there a way to stick with the int field type but leave the data written to that field as is?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/157449-mysql-table-type/
Share on other sites

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.