CREATE OR REPLACE FUNCTION FUN_GETBRNAME (pbrno varchar)returns varchar(80)begindeclare @pbrname varchar(80);set @pbrname = select br_name from TBL_ORG_DEPARTMENTS where br_no = pbrno;return @pbrname;end;这个找不到哪里有错误,请大神指正。
2 回答
千巷猫影
TA贡献1829条经验 获得超7个赞
CREATE OR REPLACE FUNCTION FUN_GETBRNAME (pbrno varchar)
returns varchar(80)
begin
declare @pbrname varchar(80);
select br_name into @pbrname from TBL_ORG_DEPARTMENTS where br_no = pbrno;
return @pbrname;
end;
CREATE FUNCTION FUN_GETBRNAME (pbrno varchar(80)) returns varchar(80) begin declare pbrname varchar(80); select br_name into pbrname from TBL_ORG_DEPARTMENTS where br_no = pbrno; return pbrname; end;
- 2 回答
- 0 关注
- 1220 浏览
添加回答
举报
0/150
提交
取消