下面的代码在w_add_ax_extra(1, 'k', 'v')
以前给出错误是w_add_ax_extra(some_id, kv.k, kv.v)
我将其更改k, v
为重现相同的错误
declare
kv record;
begin
-- Lines skipped
for kv in select * from (select (each(extras)).*) as f(k,v) loop
raise notice 'key=%,value=%',kv.k,kv.v;
w_add_ax_extra(1, 'k', 'v');
end loop;
-- Lines Skipped
end
我收到语法错误,但不明白我缺少什么
ERROR: syntax error at or near "w_add_ax_extra"
LINE 1: w_add_ax_extra(1, 'k', 'v')
但是,如果我这样做的dummy = w_add_ax_extra(1, 'k', 'v')
话。是的,这个函数返回一个整数。但我不需要将它存储在这里。是否必须保留返回值?