日期:2014-05-17  浏览次数:20884 次

初学者之疑惑
写了一个procedure:

create or replace procedure a_time(id in article.id%type,content in article.author%type) is
begin
update article t set t.content=content  where t.id=id;
end;

能统计过去,为什么我调用不了?
exec a_time(1,'我爱小丫头哈哈');
commit;
之前是因为没有commit出点问题,现在这我加也还是不行,这是为什么哩?
SQL

------解决方案--------------------
楼主报什么错误?
------解决方案--------------------
最起码commit放在存储过程里面吧,还有输入参数你搞成什么具体的类型看看呢
------解决方案--------------------
1.最起码你应该说出 报的错误吧?

2.如果你是在command窗口调用,应该是没问题的,前提是输入参数没搞错。

3.如果 是 sql window 调用,应该写成

begin
a_time(1,'我爱小丫头哈哈');
commit;
end;