I've got a TINYINT column in a MySQL database that has leading zeros that I didn't want... I created the column with "TINYINT UNSIGNED ZEROFILL" and I'm assuming the ZEROFILL tag must be why those zeros are there. I could easily drop the table and make a create a new one without using ZEROFILL, but then I'd lose all the data that's already in the table.
Example: "9" shows up as "009"
My question is: How do I alter the column to get rid of those leading zeros without losing the data? I tried using the ALTER and CHANGE commands but I couldn't get the syntax to work... I think I'm on the right track, but I can't figure out the right syntax, or something. (I've done a lot with MSAccess/ASP, but I'm fairly new to PHP/MySQL...)
Any help is apprecaited...
Thanks in advance,
-Ben