Jump to content

Changing Table Properties in SQL


Jillianxad

Recommended Posts

hmm, well, easiest way is to use phpmyadmin if you have it installed. If your numbers are rounding and you don\'t want them too, change the field from int to float. Or if they don\'t round and you want them to, switch them around hehe.

 

If you don\'t have access to phpmyadmin then you can try changing it with the alter command, should back up the database first just in case though :)

 

something like:

ALTER TABLE mytable CHANGE column_name column_name FLOAT NOT NULL;

 

That will change the column named column in the table called mytable to a float type

 

Hope that helps :)

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.