Oracle DB错误遇到符号" /"

时间:2016-08-14 03:41:30

标签: oracle stored-procedures

create or replace procedure account_validatelogin (
p_user varchar2,
p_pw number, cur out sys_refcursor)
as
v_count number(10);
v_res number(1);
begin

Select count(*) INTO v_count from ACCOUNT a where a.USERNAME = p_user and        a.PASSWORD = p_pw;
if v_count > 0 then
v_res := 1;
else 
v_res := 0;
end if;

open cur for select v_res from dual;
end;
/

我在Oracle db中执行此查询但是我收到了错误 Error(17,3): PLS-00103: Encountered the symbol "/" The symbol "/" was ignored.

请帮我解决这个问题,非常感谢

0 个答案:

没有答案