Could someone help me out here?. I have just recently uploaded some geographic coordinates into mysql and using mysql to retrieve records based on geographic coordinate values.
mysql> select count(*) from VDR where (LATITUDE between -38 and -37)
mysql returns 0 records (which is wrong because all of the Latitude values is less than -37)
but
mysql> select count(*) from VDR where (LATITUDE between -38 and -3)
mysql returns 997913 records which is correct. Somehow, mysql does not like the double digit figures for the second negative number.
Could this be a mysql bug or just a sql syntax problem ?
Sam
mysql> select count(*) from VDR where (LATITUDE between -38 and -37)
mysql returns 0 records (which is wrong because all of the Latitude values is less than -37)
but
mysql> select count(*) from VDR where (LATITUDE between -38 and -3)
mysql returns 997913 records which is correct. Somehow, mysql does not like the double digit figures for the second negative number.
Could this be a mysql bug or just a sql syntax problem ?
Sam