oracle sql statement ignored,关于oracle PL/SQL存储过程 PLS-00905 object is invalid,statement ignored问题的解决,...

关于oracle PL/SQL存储过程 PLS-00905 object is invalid,statement ignored问题的解决,存储过程oracle

昨天在学习oracle存储过程的时候,写了一个存储过程的demo,语句是这样的:

CREATE OR REPLACE PROCEDURE RAISESALARY(PNAME IN VARCHAR2(20))ASpsssal TESTDELETE.TESTID%TYPE;BEGIN

SELECT TESTID INTO psssal FROM TESTDELETE WHERE TESTNAME=PNAME;UPDATE TESTDELETE SET TESTID=(TESTID+10000) WHERE TESTNAME=PNAME;

DBMS_OUTPUT.PUT_LINE('The original salary'||psssal||'After the raise'||(psssal+1000));end;/

想法是通过表的varchar(20)类型字段找到number类型字段,然后更改number类型的字段。表结构如下:

create tableTESTDELETE

(

TESTIDNUMBER,

TESTNAMEVARCHAR2(20)

)

将存储过程调用,出现结果如下:

Connected to:

OracleDatabase 11g Enterprise Edition Release 11.2.0.1.0 - 64bitProductionWith the Partitioning, OLAP, Data Mining and RealApplication Testing optionsCREAT

你可能感兴趣的:(oracle,sql,statement,ignored)