有人知道INTERBASE的动态SQL怎么用?
执行的结果放在一个变量 var_1 中
执行的结果放在一个变量 var_1 中
create procedure myprocedurename
returns(MyReturnValue numeric(15,2))
as
begin
select sum(col1) from goods where...
into :MyReturnValue;
end
调用时直接调用即可了,如:
select * from MyprocedureName
返回单行单个字段的求和值。