3334
MySQLERRORNotableSpatial / GISHIGH confidence
SRID used in non-spatial column context
Production Risk
Low — DDL fails; no table is created.
How to reproduce
trigger — this will error
trigger — this will error
CREATE TABLE t (id INT SRID 4326);
expected output
ERROR 3334 (HY000): SRID usage is invalid for column 'id'.
Fix
Remove SRID from non-spatial column
Remove SRID from non-spatial column
CREATE TABLE t (id INT);
Why this works
SRID is only meaningful for geometry columns.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3334 ER_SRID_WRONG_USAGE
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev