Procedure in converting int to decimal data type?

Posted by Fedor on Stack Overflow See other posts from Stack Overflow or by Fedor
Published on 2010-06-07T17:16:48Z Indexed on 2010/06/07 17:22 UTC
Read the original article Hit count: 273

Filed under:
|
|
|
|

I have an int(11) column which is used to store money. I read some of the answers on SO and it seems I just need to update it to be a decimal (19,4) data type.

Are there any gotchas I should know about before I actually do the converting? My application is in PHP/Zend and I'm not using an ORM so I doubt I would need to update any sort of class to consistently identify the data type.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql