0
我获得以下从下面的函数错误:参数传递到PLPGSQL功能EXECUTE
ERROR: column "_df" does not exist
create or replace function lax()returns setof record as
$$
declare
rs record;
_planunitcode int;
_DF VARCHAR(25);
str text;
begin
_planunitcode:=1;
_DF :='role.planner';
str :='select role from userplanunit where role = _DF';
--str :='select role from userplanunit where role = quote_literal('DF');';quote_ident
for rs in execute str
--for rs in select role from userplanunit where role = _DF
loop
return next rs;
end loop;
return;
end
$$ language 'plpgsql';
的问题,谢谢你,我得到了它,并使用在我的项目中 – kallem 2011-02-28 05:58:33