Check for equality on a MySQL Float field

后端 未结 5 1571
失恋的感觉
失恋的感觉 2021-02-12 16:00

I have a Joomla system and I\'m trying to change the search so that it correctly finds floating point values in the database.

So, I have a query that is built at runtime

5条回答
  •  -上瘾入骨i
    2021-02-12 16:52

    Here is an easy way to do this

    Just write where some_float_field LIKE 2.18

    Hope it will help ;)

提交回复
热议问题