0
我嘗試從兩列中的所有記錄與不同的表和分隔彼此之間,但我只有結果從第一行不是從所有行我怎麼能解決這個問題?Postgres sql返回值
CREATE FUNCTION human() RETURNS integer AS $$
DECLARE person integer;
size integer;
def integer;
Begin
Select sizex into size from region;
Select defx into def from humans;
osoba = def/size;
return person;
END;
$$ LANGUAGE 'plpgsql';
select human();