Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQL> DECLARE
- 2 VAR1 VARCHAR2(20);
- 3 BEGIN
- 4 VAR1:= 'Hello Oracle';
- 5 DBMS_output.put
- 6
- 7
- 8 /
- DECLARE
- *
- ERROR at line 1:
- ORA-06550: line 7, column 0:
- PLS-00103: Encountered the symbol "end-of-file" when expecting one of the
- following:
- := . ( @ % ;
- SQL> declare
- 2 var1 varchar2(20);
- 3 begin
- 4 var1:= 'Hello Oracle';
- 5 DBMS_output.put_line(var1);
- 6 exception
- 7 when others them
- 8 /
- when others them
- *
- ERROR at line 7:
- ORA-06550: line 7, column 13:
- PLS-00103: Encountered the symbol "THEM" when expecting one of the following:
- then or
- SQL> declare
- 2 var1 varchar2(20);
- 3 begin
- 4 var1:= 'Hello Oracle';
- 5 DBMS_output.put_line(var1);
- 6 exception
- 7 when others then
- 8 DBMS_output.put_line('Hell no');
- 9 end;
- 10 /
- Hello Oracle
- PL/SQL procedure successfully completed.
- SQL>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement