SQLite query where clause with floating point numbers fails?

后端 未结 5 1373
死守一世寂寞
死守一世寂寞 2021-01-13 07:03

I\'m putting a float in an Android based SQLite database, like so:

private static final String DATABASE_CREATE = 
    \"create table \" + DATABASE_TABLE + \"         


        
5条回答
  •  抹茶落季
    2021-01-13 07:52

    I tried with BETWEEN AND and it worked, tolerance LATITUDE > 37.29 AND LATITUDE < 37.31 didn't work for me. But I tried BETWEEN with this hint.

    My observations:

    1. When I have a single record, greater than (>) didn't work.
    2. If there is more than one record, greater than (>) worked perfectly.

提交回复
热议问题