ST_DIFFERENCE
Syntax
ST_DIFFERENCE(g1,g2)
Description
Returns a geometry representing the point set difference of the given geometry values.
Example
SET @g1 = POINT(10,10), @g2 = POINT(20,20);
SELECT ST_AsText(ST_Difference(@g1, @g2));
+------------------------------------+
| ST_AsText(ST_Difference(@g1, @g2)) |
+------------------------------------+
| POINT(10 10) |
+------------------------------------+
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?