PLS-00103: 出现符号 ...

Oracle存储过程:

create or replace procedure update_people(in_name   in nvarchar2(20),

                                          in_status in nvarchar2) as
 begin
 update people set status = in_status where name = in_name; commit; end update_people;


错误提示:

错误:PLS-00103: 出现符号 "("在需要下列之一时:         := . ) , @ % default           character        符号 ":=" 被替换为 "(" 后继续。

行:1 文本:create or replace procedure update_people(in_name   in nvarchar2(20),

 

查资料,存储过程定义的时候不需要指定VARCHAR2的长度!去掉nvarchar2的长度就可以了!

 

 

 

posted @ 2013-11-30 22:49  cxiaoluab  阅读(7444)  评论(0编辑  收藏  举报