+ -
当前位置:首页 → 问答吧 → ORACLE 存储过程 ORA-00900:无效SQL语句

ORACLE 存储过程 ORA-00900:无效SQL语句

时间:2011-10-20

来源:互联网

CREATE OR REPLACE PROCEDURE proc_clrwl_ds1
(
  unit in nvarchar2,
)
is
  t number;
  adpt_name nvarchar2(50);
begin
  t:=40;
  if (t<=120) then 
  begin
  select dpt_name into adpt_name from usr_dpt;
  commit;
  end;
  else
  begin
  select dpt_name into adpt_name from usr_dpt where dpt_name=unit;  
  commit;  
  end;
  end if;
  commit;
end;

贴出SQL希望大家指正,只要我一执行就报ORA-00900,执行的SQL:exec proc proc_clrwl_ds1('')

作者: thinoft   发布时间: 2011-10-20

具体的执行语句参数呢?

作者: lzd_83   发布时间: 2011-10-20

热门下载

更多