pls-00103

PLS-00103: Encountered the symbol “END” when expecting + & = etc

最后都变了- 提交于 2020-01-07 01:48:11
问题 This is my code: DECLARE v_grade CHAR(1) := UPPER('&grade'); appraisal VARCHAR(20); BEGIN appraisal := CASE v_grade WHEN 'A' THEN 'Excellent' WHEN 'B' THEN 'Very Good' WHEN 'C' THEN 'Good' WHEN 'No such grade' END; DBMS_OUTPUT.PUT_LINE('Grade: '||v_grade||'Appraisal '||appraisal); END; / this is the full error code: ERROR at line 10: ORA-06550: line 10, column 1: PLS-00103: Encountered the symbol "END" when expecting one of the following: * & = - + < / > at in is mod remainer not rem then <an

create oracle package encountered PLS-00103: Encountered the symbol “CREATE”

不问归期 提交于 2019-12-18 01:57:51
问题 I am writing an oracle package using Oracle sql developer, I got this compile error: Error(7,1): PLS-00103: Encountered the symbol "CREATE" . create or replace PACKAGE TestPackage AS FUNCTION beforePopulate RETURN BOOLEAN; FUNCTION afterPopulate RETURN BOOLEAN; END TestPackage; CREATE OR REPLACE PACKAGE BODY TestPackage AS FUNCTION beforePopulate RETURN BOOLEAN AS BEGIN DELETE FROM TEST_1; INSERT INTO TEST_1 SELECT * FROM TEST WHERE VALUE=300; COMMIT; RETURN TRUE; EXCEPTION WHEN OTHERS THEN

ORA-06550 and PLS-00103

牧云@^-^@ 提交于 2019-12-13 15:33:33
问题 HI, I am using UNIX OS and working on oracle. I am getting the error message below E ORA-06550: line 1, column 8: PLS-00103: Encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use <an identifier> <a double-quoted delimited-identifier> form current cursor The symbol "" was ignored. ORA-06550: line 2, column 27: PLS-00103: Encountered the symbol "" when expecting one of the following: begin function package pragma procedure

PLS-00103 Error in PL/SQL Developer

假如想象 提交于 2019-12-11 04:12:23
问题 Note: I do not have this problem when using Oracle SQL Developer:: - But it is not the Standard here. So i must find a way to do this in PL/SQL Developer When attempting to use PL/SQL developer (PL/SQL Developer - the program) to dynamically drop tables then create new ones using a create statement I consistently run into the error: PLS-00103: ENCOUNTERED THE SYMBOL "/" THE SYMBOL "/" WAS IGNORED PLSQL This is due to the "/" at the end of the dynamic sql. If I remove the "/" from the end I

PLS-00103: Encountered the symbol “CREATE”

做~自己de王妃 提交于 2019-11-26 16:48:57
问题 What is the problem with this package as it is giving an error? CREATE OR REPLACE PACKAGE PKG_SHOW_CUST_DETAILS AS PROCEDURE SHOW_CUST_DETAILS( myArg VARCHAR2); END PKG_SHOW_CUST_DETAILS; CREATE OR REPLACE PACKAGE BODY PKG_SHOW_CUST_DETAILS AS PROCEDURE SHOW_CUST_DETAILS(myArg VARCHAR2) IS BEGIN DBMS_OUTPUT.PUT_LINE(myArg); END SHOW_CUST_DETAILS; END PKG_SHOW_CUST_DETAILS; / On compilation of the above script, I am getting the following errors: SQL> show errors Errors for PACKAGE PKG_SHOW