Spatial data types refer to storing geometric or location-based data such as points, lines, and polygons. When you create a table in MySQL, you define the spatial data type (like POINT, LINESTRING, POLYGON, etc.) so that, spatial or geographic values can be inserted into that column.
Syntax:
CREATE TABLE locations (
location_id INT,
location_point POINT );
