Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the..

761444Mar 20 2010 — edited Mar 20 2010
Keep getting the following error :

Error starting at line 1 in command:
DECLARE
snumber S_STUDENT.STUDENTNO%TYPE;:='&snum';
saddress S_STUDENT.ADDRESS%TYPE:='&saddress';
pcode S_STUDENT.PROGRAMCODE%TYPE:='&pcode';
scode S_STUDENT.STAGECODE%TYPE:='&scode';
Error report:
ORA-06550: line 2, column 34:
PLS-00103: Encountered the symbol "=" when expecting one of the following:

begin function pragma procedure subtype type <an identifier>
<a double-quoted delimited-identifier> current cursor delete
exists prior
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:


My Code:

--Declaring variables to hold a student name,a student address, a program code and a stage code.

DECLARE
snumber S_STUDENT.STUDENTNO%TYPE;:='&snum';
saddress S_STUDENT.ADDRESS%TYPE:='&saddress';
pcode S_STUDENT.PROGRAMCODE%TYPE:='&pcode';
scode S_STUDENT.STAGECODE%TYPE:='&scode';


Any help appeciated. :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2010
Added on Mar 20 2010
3 comments
12,771 views