dynamic SQL query
Hi,
can anyone tell me if it's possible to run a query that change during execution? For example if radiobutton1 is selected i want to select from table1 otherwise from table2;
A large piece of code fits with both queryies ... so i don't want to use twice that part of code.
Thank you.
Tags:
Amit Gupta replied
try:
data: g_tabnam type string.
g_tabnam = 'csks'.
select * from (g_tabnam). " do not remove brackets