This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 启动时使用 -Djava.security.egd=file:/dev/urandom 修复该问题 | |
| nohup java -Djava.security.egd=file:/dev/urandom -jar $runjarfile >lc-pet.log & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- $lng 为待查询的经度 $lat 为待查询的纬度 | |
| SELECT * | |
| FROM ( | |
| SELECT T_POI.* | |
| , POWER(MOD(ABS(T_POI.LNG - $lng), 360), 2) + POWER(ABS(T_POI.LAT - $lat), 2) AS distance | |
| FROM T_POI | |
| ORDER BY distance ASC | |
| ) | |
| WHERE ROWNUM <= 10; |