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的长度就可以了!

 

 

 

相关文章:

  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
相关资源
相似解决方案