Insert non-English decimal points in mysql

后端 未结 4 2022
孤独总比滥情好
孤独总比滥情好 2020-12-07 02:33

How can you make mysql understand non-English decimal points in integer/float fields?

setLocale(LC_ALL, \'da_DK.ISO-8859-1\');

eg:

4条回答
  •  旧巷少年郎
    2020-12-07 03:01

    Numbers aren't affected by locale settings (same in SQL Server too).

    So you'd have to send as "0.25"

提交回复
热议问题