日期:2014-05-17 浏览次数:22433 次
CREATE OR REPLACE PROCEDURE PROADMININFO(ADMINNAME in varchar2, ADMINPWD in varchar2) IS cur_restdata tbl_rest_waiting_queue%rowtype;--定义游标 begin select * into cur_restdata from userinfo where loginid=ADMINNAME and password=ADMINPWD; end; END PROADMININFO;
------解决方案--------------------
select 后面缺少赋值into给变量
------解决方案--------------------
CREATE OR REPLACE PROCEDURE PROADMININFO (adminName in varchar2, adminPWD in varchar2) IS rec userinfo%ROWTYPE; BEGIN SELECT * INTO rec FROM UserInfo WHERE loginid = adminName AND password = adminPWD; END PROADMININFO;
------解决方案--------------------
procedure 不能仅仅只执行一个select语句。
------解决方案--------------------
查出来的数据应该有个容器来装它