2012-04-12 41 views

回答

1

如果X是你想要的位數:

select name, round(lat, X, 1), round(lng, X, 1) 
from locations limit 10 

如果你想讓它圓以及截形,取出1函數的參數。

0

讓假設你想獲得0.3

select name , lat , lng from locations 
where lat like '%.3' and lng like '%.3' 
limit 10