I am constructing Dynamic Sql, Dont understand how to use single quote in the select statement, which contains some variables
For E.g.
SELECT ABC.NEXTVAL,'||val_name||' Vname,'||ta_tab||' Tname,'||', Accnt_id, rowid from emp;
Where val_name and ta_tab are NOT column of the table Emp, but those are variables calculated in block, and I require them to Insert into another table directly.
How to solve This, I tried using 'Double-quotes' but it doesnt work and variable values are not printed ( it considered as string )