I have a table containing latitude and longitude values stored as strings (VARCHAR) which I’d like to convert to FLOAT (10,6).
However there doesn’t appear to be a straightforward way to do this using CAST() or CONVERT().
How can I convert these columns easily? This is a one-time conversion.
It turns out I was just missing
DECIMALon theCAST()description:Thus, the following query worked: