plsql - Variables in PL/SQL; always bind variables? -


i read question: are pl/sql variables in cursors same bind parameters?

the answers given good. rather use thread , ask clarification (as rule states), wish ask clarification here. should (can) assume every variable in pl/sql statement bind variable?

yes, whenever use pl/sql variable in embedded sql bind variable.

if don't use in sql, variable of course, because bind variables sql thing only. use in sql in our pl/sql package, function or whatever, becomes bind variable sql engine.

declare   v_one    varchar2(100);   v_two    varchar2(100);   v_three  varchar2(100); begin   v_one := 'one';   v_two := 'two';    select col_three v_three mytable col_one = v_one; end; 

v_one, v_two , v_three pl/sql variables. however, there sql in our pl/sql block , using v_one there in clause. v_one bind variable in sql statement. (v_three return value query. into v_three not sql, pl/sql, sql knows no keyword.) v_two not used in sql, never being used bind variable.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -