GLength(ls)

Returns a double-precision number indicating the length of the
LineString or MultiLineString value ls in its associated spatial
reference. The length of a MultiLineString value is equal to the sum of
the lengths of its elements.

URL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html

