VEC_FromText

Cover

WEBINAR

The Next Generation of MariaDB: Powered by Vector Search

Vectors are available from MariaDB 11.7.

Syntax

VEC_FromText(s)

Description

VEC_FromText converts a text representation of the vector (json array of numbers) to a vector (little-endian IEEE float sequence of bytes, 4 bytes per float).

Example

SELECT HEX(vec_fromtext('[1,2,3]')); 
+------------------------------+
| HEX(vec_fromtext('[1,2,3]')) |
+------------------------------+
| 0000803F0000004000004040     |
+------------------------------+

This page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?