Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Result set values as inparameter to anothe result set

Status
Not open for further replies.

lovinasd

Programmer
Jan 23, 2005
23
US
Hi,
I have a program which retrieves value from one resultset and gives it to another is this possible as i am getting an error.
resultset rs1,rs2;
rs1 has a set of distinct elements of one column from the table.
i would like to pass these values to the resultsetstatment of rs2 as a inparamenter which is another sql statment so can i do this way in the sql statement
select x,y from sample where x=getString(element);
element is the values retrived in the first result set and the field name in the database.Is this possible becoz i am getting a error.how can i do this.
Thanks
Lovina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top