小弟问个基础问题这个小程序哪里错了?
有emp表
ID NAME SEX SAL
---------- ---------- ---------- ----------------------------------------------------------------------------- 1 li 男 100
2 月 男 200
create procedure sp_pro3(spname varchar2,newsal number) is
begin
update emp set sal=newsal where name=spname;
end;
有emp表
ID NAME SEX SAL
---------- ---------- ---------- ----------------------------------------------------------------------------- 1 li 男 100
2 月 男 200
create procedure sp_pro3(spname varchar2,newsal number) is
begin
update emp set sal=newsal where name=spname;
end;
as
I number;
begin
select count(*) into I from users where username = name;
if I>0
then
dbms_output.put_line('用户存在');
else
dbms_output.put_line('用户不存在');
end if;
end;
我也是报的这个错误 还没有解决