Summary of "PL/SQL tutorial 2 : PL/SQL Variables in Oracle Database By Manish Sharma RebellionRider"

Overview

Detailed concepts and rules

What a variable is

Where to declare variables

SET SERVEROUTPUT ON;

DECLARE
  -- variable_declarations...
BEGIN
  -- executable_statements...
EXCEPTION
  -- exception_handlers...
END;
/

Declaration syntax (examples)

v_test VARCHAR2(15);
v_test VARCHAR2(15) := 'RebellionRider';

Assignment / initialization

Example: initialize and print in the execution section

SET SERVEROUTPUT ON;

DECLARE
  v_test VARCHAR2(15);
BEGIN
  v_test := 'RebellionRider';
  DBMS_OUTPUT.PUT_LINE(v_test);
END;
/

Displaying output

Additional notes

Speakers / sources featured

Category ?

Educational


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video