您好,我已经创建了一个具有以上列类型PATH的表(遵循Postgres文档)
CREATE TABLE public.geometry_polyline_volume
(
id serial not null primary key,
distance float not null,
height float not null,
coordinates path not null
);
试图将上述值作为行插入
INSERT INTO public.geometry_polyline_volume(id, distance, height, coordinates)
VALUES (2, 500, 0, path((15.878137629895164,47.08306448089695), (15.56169808311181,47.219041634920686), (15.267442604782124,47.4201665137259), (15.092631384557304,47.71366328136526), (15.234428926980286,47.95865145177352)));
我发生以下错误
消息:错误:列“坐标”是路径类型,但表达式的类型为record
INSERT INTO mytable (geom) VALUES (
ST_GeomFromText('POINT(0 0)', 26910)
);
希望这会有所帮助。