请问高手,在PLSQL Developer中能否象执行SQL SERVER 的存储过程一样去执行ORACLE的FUNCTION?真的 很急!!! 好像是如果是procedureexecute procedure_name(PARA1,PARA2,.....);functionselect function_name((PARA1,PARA2,.....) from dual; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样可以:Declare v_return number ; --f返回值Begin v_return := function_name((PARA1,PARA2,.....) ;end;/ DECLAREout_fare NUMBER;out_other_fare NUMBER;SELECT SP_HS_GOVTFARE ('335400',2004,out_fare,out_other_fare) from dual;ORA-06550: 第 4 行, 第 1 列: PLS-00103: 出现符号 "SELECT"在需要下列之一时:beginfunctionpackage pragmaproceduresubtypetypeuse<an identifier> <a double-quoted delimited-identifier>cursorformcurrent符号 "begin" 被替换为 "SELECT" 后继续。ORA-06550: 第 7 行, 第 0 列: PLS-00103: 出现符号 "end-of-file"在需要下列之一时:begindeclareend exceptionexitforgotoifloopmodnullpragmaraisereturnselect updatewhile<an identifier> <a double-quoted delimited-identifier><a bind variable><< closecurrentdelet谢谢楼上的,我执行如上语句,报错如上,是我哪里出错了吗? SQL> Declare 2 v_return number ; --f返回值 3 out_fare NUMBER; 4 out_other_fare NUMBER; 5 Begin 6 v_return := SP_HS_GOVTFARE ('335400',2004,out_fare,out_other_fare); 7 end; 8 /PL/SQL procedure successfully completed再次谢谢楼上的两位,问题已经解决。马上结帐。 这样写sql是不是少一天数据? IMP-00017: following statement failed with ORACLE error 0 菜鸟求救,HTTPserver服务打不开? oralce的访问其他数据库的表 windows双机群集下oracle安装 级联删除的问题 请教这个sql语句怎么写? 在solaris8下安装oracle9重新启动工作站后如何启动oracle数据库呢? oracle的价格问题 请教oracle9i里回滚段怎么用 这个函数哪里错了?????? 求SELECT語句的寫法,在線等待!!!
Declare
v_return number ; --f返回值
Begin
v_return := function_name((PARA1,PARA2,.....) ;
end;
/
out_fare NUMBER;
out_other_fare NUMBER;
SELECT SP_HS_GOVTFARE ('335400',2004,out_fare,out_other_fare) from dual;ORA-06550: 第 4 行, 第 1 列:
PLS-00103: 出现符号 "SELECT"在需要下列之一时:
beginfunctionpackage
pragmaproceduresubtypetypeuse<an identifier>
<a double-quoted delimited-identifier>cursorformcurrent
符号 "begin" 被替换为 "SELECT" 后继续。
ORA-06550: 第 7 行, 第 0 列:
PLS-00103: 出现符号 "end-of-file"在需要下列之一时:
begindeclareend
exceptionexitforgotoifloopmodnullpragmaraisereturnselect
updatewhile<an identifier>
<a double-quoted delimited-identifier><a bind variable><<
closecurrentdelet
谢谢楼上的,我执行如上语句,报错如上,是我哪里出错了吗?
2 v_return number ; --f返回值
3 out_fare NUMBER;
4 out_other_fare NUMBER;
5 Begin
6 v_return := SP_HS_GOVTFARE ('335400',2004,out_fare,out_other_fare);
7 end;
8 /
PL/SQL procedure successfully completed再次谢谢楼上的两位,问题已经解决。
马上结帐。