postgresql 賦值注意
在函數裏面賦值需要注意以下
定義變量是在begin前
變量賦值時使用 :=
select 中賦值使用into
如下:
create or replace...
return i int
declare
value int;
begin
value:=100;
select id into value from table_name
end
postgresql 賦值注意
在函數裏面賦值需要注意以下
定義變量是在begin前
變量賦值時使用 :=
select 中賦值使用into
如下:
create or replace...
return i int
declare
value int;
begin
value:=100;
select id into value from table_name
end