What is Anonymous PL/SQL block in Oracle
An anonymous PL/SQL block is a block of code that is not stored in the database. When submitted to the database, the code will be executed immediately. An anonymous PL/SQL block always starts with DECLARE or BEGIN.
Example:
BEGIN
dbms_output.put_line('Hi, this is anonymous PL/SQL');
END;
/
Example:
BEGIN
dbms_output.put_line('Hi, this is anonymous PL/SQL');
END;
/
Comments
Post a Comment