Collections:
How Many Anonymous Blocks Can Be Defined in Oracle
How Many Anonymous Blocks Can Be Defined in Oracle?
✍: FYIcenter.com
An anonymous block is stored in the user's current session without any name. So you can only define one anonymous block at any time. If you define another anonymous block, the new block will replace the previously defined block, as shown in the following script:
SQL> set serveroutput on;
SQL> begin
2 dbms_output.put_line('Hello world!');
3 end;
4 /
Hello world!
PL/SQL procedure successfully completed.
SQL> begin
2 dbms_output.put_line('This is a PL/SQL FAQ.');
3 end;
4 /
This is a PL/SQL FAQ.
PL/SQL procedure successfully completed.
⇒ Run the Anonymous Block Again in Oracle
⇐ Define an Anonymous Block in Oracle
2018-10-30, 2900🔥, 0💬
Popular Posts:
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...