How to pass query as parameter?
I have a real tough time in finding the solution of a problem. I am here to find a real solution of my problem. Please help me solve this problem.
My Problem is:
I have 3 query..
String qry1="select id from table1";
String qry2="select name from table2";
String qry3="select age from table13";
string q=Insert into emp values(?,?,?);
In this, i am not able to pass the value of qry1,qry2,qry3...
Please help me to find the solution.
Its really urgent.......Please