Problem with MySQL Column Type

8 posts by 4 authors in: Forums > CMS Builder
Last Post: December 7, 2009   (RSS)

By Djulia - August 11, 2009 - edited: August 11, 2009

Hello,

I have a problem with the option MySQL Column Type.

I have a field of the Text type,
...and Custom Column Standard == DECIMAL

But, if I enter a value like 40.55, CmsB gives me 40.
It does not take into account the decimal.

Somebody has an idea
?
Thanks for your assistance, Djulia


http://help.scibit.com/Mascon/masconMySQL_Field_Types.html

Re: [chris] Problem with MySQL Column Type

By Djulia - August 11, 2009

Hi [font "Verdana"]Chris,

Thanks for your answer. :)

> [font "Verdana"]DECIMAL(10,2)
That corrected my problem !

Djulia

Re: [chris] Problem with MySQL Column Type

By Djulia - September 5, 2009

Hi Chris,

Which is best MySQL column type for IP address according to you ?

Thanks for your assistance.

Djulia

Re: [chris] Problem with MySQL Column Type

By Djulia - September 5, 2009 - edited: September 5, 2009

Hi Chris,

I think that I found an answer (BIGINT), ip2long(), long2ip().

It is an interesting article :
http://bafford.com/2009/03/09/mysql-performance-benefits-of-storing-integer-ip-addresses/

Djulia

Re: [Djulia] Problem with MySQL Column Type

By Dave - September 9, 2009

Djulia,

Glad you got it figured out, and thanks for posting the link! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Problem with MySQL Column Type

By WillTherman - December 5, 2009 - edited: April 4, 2011

So does that mean something like 38.22 becomes 38,2? I'm a little confused.

Will
http://honestreview4u.com/bowtrol
http://honestreview4u.com/ | http://linklava.com/

Re: [WillTherman] Problem with MySQL Column Type

By Dave - December 7, 2009

Hi Will,

It would depend. What are you trying to do?
Dave Edis - Senior Developer
interactivetools.com