VEC_FromText
Convert text to vector. This function parses a JSON array string representation of a vector and converts it into the binary VECTOR data type.

Syntax
VEC_FromText(s)Description
Example
SELECT HEX(vec_fromtext('[1,2,3]'));
+------------------------------+
| HEX(vec_fromtext('[1,2,3]')) |
+------------------------------+
| 0000803F0000004000004040 |
+------------------------------+Last updated
Was this helpful?

