VEC_FromText

Cover

WEBINAR

The Next Generation of MariaDB: Powered by Vector Search

MariaDB starting with 11.6

Vectors were introduced in 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?