01 PLSQL
01 PLSQL
SQL> cl scr
SQL> SELECT
2
SQL> BEGIN
2
3
4
5
6
7
8 END;
9 .
SQL> BEGIN
2
3 END;
4 /
END;
*
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: Encountered the symbol "END" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
<an alternatively-quoted SQL string>
SQL> BEGIN
2 NULL;
3 END;
4 /
SQL> BEGIN
2 RETURN;
3 END;
4 /
SQL> DECLARE
2 BEGIN
3 NULL;
4 END;
5 /
SQL> DECLARE
2 BEGIN
Document Generated By SkyEss Techno Solutions Pvt.
Ltd. For Queries And Live Project Experience in Any
Domain
Mail at: [email protected] (OR)
Spool Generated For Class of Oracle By Satish K Yellanki
3 NULL;
4 EXCEPTION
5 END;
6 /
END;
*
ERROR at line 5:
ORA-06550: line 5, column 1:
PLS-00103: Encountered the symbol "END" when expecting one of the following:
pragma when
SQL> ED
Wrote file afiedt.buf
1 DECLARE
2 BEGIN
3 NULL;
4 EXCEPTION
5 WHEN OTHERS THEN
6* END;
SQL> /
END;
*
ERROR at line 6:
ORA-06550: line 6, column 1:
PLS-00103: Encountered the symbol "END" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
<an alternatively-quoted SQL string>
SQL> ED
Wrote file afiedt.buf
1 DECLARE
2 BEGIN
3 NULL;
4 EXCEPTION
5 WHEN OTHERS THEN
6 NULL;
7* END;
SQL> /
SQL> DECLARE
2 V_Num NUMBER(4);
3 V_Bool BOOLEAN;
4 .
SQL> DECLARE
Document Generated By SkyEss Techno Solutions Pvt.
Ltd. For Queries And Live Project Experience in Any
Domain
Mail at: [email protected] (OR)
Spool Generated For Class of Oracle By Satish K Yellanki
2 x NUMBER(4);
3 .
SQL> cl scr
SQL> DECLARE
2 .
SQL> DECLARE
2 V_Number NUMBER(4);
3 .
SQL> <<MyProgram>>
2 DECLARE
3 V_Number NUMBER(4) := 1234;
4 V_String VARCHAR2(10) := 'SAMPLE'; --A Variable To Hold String
5 /*
6 Executable Routine
7 is About To Begin.
8 Here We Write The
9 Operational Logic.
10 */
11 BEGIN
12 .
SQL> SPOOL OFF