Slide 4
Slide 4 text
ベクトル データ型
内部的には、JSON で表現した数値の配列
各要素は 単精度(4byte)浮動小数点
配列の最大次元 1998 (1998次元配列まで)
単精度浮動小数点 = float(24) or real
create table [テーブル] (
[キー] bigint not null primary key
, [ベクトル] vector(3) not null
)
;
insert into [テーブル] ([キー], [ベクトル]) values
(1, '[0.1, 2, 30]')
, (2, '[-100.2, 0.123, 9.876]')
;
select * from [テーブル]
ベクトル データ型 (プレビュー) - SQL Server | Microsoft Learn