Skip to content

Instantly share code, notes, and snippets.

@marcoah
Created April 22, 2018 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoah/254d4c5b669e64adbeff469bb5b4a0f7 to your computer and use it in GitHub Desktop.
Save marcoah/254d4c5b669e64adbeff469bb5b4a0f7 to your computer and use it in GitHub Desktop.
Pasar datos de Latitud y Longitud en campos double a un solo campo geography, Codigo para MySQL 5.6
UPDATE perforaciones SET POSICION = GeomFromText(CONCAT('POINT (', LON, ' ', LAT, ')'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment