Is there a way to pass column and table names dynamically to a query using bind variables? This could be done by using a simple concatenation operator ||
, but I would like a different approach by which this can be achieved.
EDIT
OPEN abc_cur FOR 'Select :column_name
from :table_name'
USING column_name,table_name;
In this example I am passing column_name
as empno,ename
and table_name
as emp
But this approach is not working for me. Is it possible to have a different approach other that the traditional approach of concatenation?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…