【发布时间】:2010-03-19 19:54:00
【问题描述】:
cursor.execute("SELECT user_id FROM myapp_location WHERE\
GLength(LineStringFromWKB(LineString(asbinary(utm), asbinary(PointFromWKB(point(%s, %s)))))) < %s"\
,(user_utm_easting, user_utm_northing, 500));
此查询选择当前用户 500 英尺内的用户。我将如何按距离订购人? (长度)。先近,后远。
您将如何更改此查询?谢谢。
【问题讨论】:
标签: mysql database select geolocation