create or replace procedure up_pro(
up_id int
) is
uname varchar2(20);
begin
select u.phonenum into uname from up u where upid=up_id;
dbms_output.put_line(uname); end up_pro; 我的调用报错~~
说非法的变量名跟变量~
调用如下
begin
-- Call the procedure
up_pro(1);
end;
请大哥们帮忙看看~
up_id int
) is
uname varchar2(20);
begin
select u.phonenum into uname from up u where upid=up_id;
dbms_output.put_line(uname); end up_pro; 我的调用报错~~
说非法的变量名跟变量~
调用如下
begin
-- Call the procedure
up_pro(1);
end;
请大哥们帮忙看看~
解决方案 »
- oracle9i for linux(AS3u9) 导入数据失败。
- 谁能帮我看看这样需求的语句怎么写!
- 根据时间查询的问题,很简单的,就是我不会
- 存储过程里建临时表出错,在线等
- 一个关于条件判断的问题,在线等
- 在secureCRT中执行SQLPLUS显示-bash: sqlplus: command not found怎么办
- 有条语句看不懂 帮忙!
- RedHat9下安装Oracle9i又遇到新问题,请教各位!
- index和like的问题
- 初学ORACLE,推荐本好点的入门书吧
- 通过后台select语句 查询出库中数据的insert语句 问题???特急,请各位给予帮助!谢谢!
- ORACLE系统服务被删了,怎么办
Wrote file afiedt.buf 1 create or replace procedure up_pro(
2 up_id int
3 ) is
4 uname varchar2(20);
5 begin
6 select to_char(up_id) into uname from dual;
7 dbms_output.put_line(uname);
8* end up_pro;
9 /Procedure created.SQL> set serverout on
SQL> begin
2 up_pro(1);
3 end;
4 /
1PL/SQL procedure successfully completed.SQL>很正确阿