Oracle Anonymous PL SQL Block
An example of an anonymous block
DECLARE
-- declare a variable
message VARCHAR2(20);
BEGIN
-- assign value to variable
message := 'HELLO WORLD';
-- print message to screen
DBMS_OUTPUT.PUT_LINE(message);
END;
/
DECLARE
-- declare a variable
message VARCHAR2(20);
BEGIN
-- assign value to variable
message := 'HELLO WORLD';
-- print message to screen
DBMS_OUTPUT.PUT_LINE(message);
END;
/
In this page (written and validated by A. Gawali) you learned about Oracle Anonymous PL SQL Block . What's Next? If you are interested in completing Oracle tutorial, your next topic will be learning about: Oracle PL SQL procedure.
Share On: |