2012-04-12 48 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