Bind variables can be declared in your SQL*Plus script,Preface a bind variable with a colon to reference it in a PL/SQL block : variable « SQL Plus « Oracle PL / SQL
- Oracle PL / SQL
- SQL Plus
- variable
Bind variables can be declared in your SQL*Plus script,Preface a bind variable with a colon to reference it in a PL/SQL block
SQL>
SQL> SET ECHO ON
SQL>
SQL> VARIABLE s_table_name varchar2(30)
SQL>
SQL>
SQL> BEGIN
2 :s_table_name := 'emp';
3 END;
4 /
PL/SQL procedure successfully completed.
SQL>
Related examples in the same category