How can you make mysql understand non-English decimal points in integer/float fields?
setLocale(LC_ALL, 'da_DK.ISO-8859-1');
eg:
0,25 will be inserted as 0
0.25 will be inserted as 0.25
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One of the reasons you can’t do that is that the comma
,is used for separating field-values inINSERTstatements.INSERT INTO a(b,c) VALUES (3,4,5)would be ambiguous.Should it result into
b=3.4 , c=5orb=3 , c=4.5?