CREATE OR REPLACE FUNCTION "Account_New"(
IN LoginName char varying(50),
IN Password1 char varying(500),
IN DisplayName char varying(50),
IN ISuperAdmin bool,
IN Status integer,
IN Salt char varying(100),
IN AccountType integer,
IN Phone char varying(50),
IN Tel char varying(50),
IN Email char varying(500),
IN QQ char varying(50),
IN Gender int,
IN IDCode char varying(100),
IN Address char varying(200),
IN Remarks text,
IN CreatedBy bigint,
IN CreatedIp char varying(50)
)
returns void
AS
$BODY$
insert into "Account"("LoginName","Password","DisplayName","ISuperAdmin","Status","Salt","AccountType","Phone","Tel","Email","QQ","Gender","IDCode","Address","Remarks","CreatedBy","CreatedIp")
values($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17);
$BODY$
LANGUAGE sql VOLATILE
COST 100
ROWS 1000;
为什么会报错啊ERROR: ROWS is not applicable when function does not return a set
你里面的insert语句,少了个括号
insertinto"Account"(
)values();
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。