我有一个SQL表,其中一个float列填充了如下值:

  • 本文关键字:填充 float 一个 SQL 有一个 sql
  • 更新时间 :
  • 英文 :


我有一个SQL表,其中一个float列填充了以下值:

0.00000.21000.00005.00000.000030.9100148.47000.0000

我需要一个查询来获取'0.0000'到'5.0000'之间的数据。

I have try this query

SELECT * FROM table where colmn  
>='0.0000'
<='5.0000';

但这里给出了金额超过'5.000'的详细信息。

有两种方法:

select * from tab where col >= 0.0 and col <= 5.0

select * from tab where col between 0.0 and 5.0

最新更新