我想在连接的文本输出中输出以下 plpgsql 函数的结果。
我该怎么做?我想要类似的东西:
output = output + 'new point';
到目前为止我的功能:
DECLARE
descriptions text[];
i text;
counter int := 1;
_r record;
output text;
BEGIN
descriptions = string_to_array(description, ',');
FOREACH i IN ARRAY descriptions
LOOP
FOR _r IN EXECUTE 'select point_id as id, name_of_location as name, description as desc
from information_on_point_of_interest
where description = '''||descriptions[counter]||''''
LOOP
output := output + _r.id || ',' || _r.name || ',' || _r.desc || '|';
END LOOP;
END LOOP;
RETURN output;
END;
output := output + new point
好像不支持?