Jillianxad Posted August 8, 2003 Share Posted August 8, 2003 I have an existing table set up in my database. I don\'t want to change it but I do want to change the properties within relating to the rounding up of the values where would I go to change that??? I am new to this and have no clue where to look first Quote Link to comment https://forums.phpfreaks.com/topic/856-changing-table-properties-in-sql/ Share on other sites More sharing options...
DylanBlitz Posted August 10, 2003 Share Posted August 10, 2003 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 Quote Link to comment https://forums.phpfreaks.com/topic/856-changing-table-properties-in-sql/#findComment-2871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.