MySQL 9.7 Reference Manual Including MySQL NDB Cluster 9.7

13.4.8 Fetching Spatial Data

Geometry values stored in a table can be fetched in internal format. You can also convert them to WKT or WKB format.