A user on SO recently gave me this Query to put into MYSQL, but I don’t know what to do with the @ sign.
SELECT user_id, GLength(LineString(utm, @mypoint))
FROM users
WHERE MBRWithin(utm, LineString(Point(X(@mypoint) - 20, Y(@mypoint - 20)), Point(X(@mypoint) + 20, Y(@mypoint + 20))
AND GLength(LineString(utm, @mypoint)) <= 20
I’m doing everything in console. How would I assign @mypoint?
check out variables here. They’re pretty sweet.