标签: mysql operators decimal
utility是DECIMAL(10,2)列。
utility
DECIMAL(10,2)
SELECT * FROM items WHERE utility >= 50
此查询返回具有4.25实用程序的内容。有谁知道如何解决这个问题?
答案 0 :(得分:2)
尝试:
SELECT * FROM items WHERE utility >= CAST(50 AS DECIMAL(10,2)); SELECT * FROM items WHERE utility >= 50.0;