Find the distance between two points in MYSQL. (using the Point Datatype)

后端 未结 3 1088
孤街浪徒
孤街浪徒 2021-01-05 07:39

Suppose I have a 2 column table like this:

| user_id      | int(11) | NO   | UNI | NULL    |                |
| utm          | point   | NO   | MUL | NULL            


        
3条回答
  •  一生所求
    2021-01-05 08:01

    Solved. This is what I did:

    where GLength(LineStringFromWKB(LineString(asbinary(utm), asbinary(@mypoint)))) < 9999999999999;
    

提交回复
热议问题