SQL - 如何只 select 分号后只有零的小数?

SQL - How do I select only the decimal numbers that only have zero after the semicolon?

我有 Val 列: 2.32 1234.54 1234.00 1234.5456 1234.54567 我只想要 select 号码,例如 1234.00 在此先感谢您的帮助

Select * 来自 mytable 其中 (Round(val,0) - val) = 0

或者如果你想保留 2 位小数,我认为这可行

Select * 来自 mytable 其中 (Val - Round(val,2) < .001)