Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-10-17 : 07:55:20
Amit writes "s1=t1.getString();
s2=t2.getString();
/* bal is the 4th column in the table sa. sa is having 4 cloumns */

ResultSet rs1=d.s.executeQuery("select bal from sa where id="+s1+" and id="+s2+"");

&

is this also correct

String s11=rs1.getString(4); /*will this give first rows bal*/
String s12=rs1.getString(8); /*will this give second rows bal*/"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-17 : 07:58:32
What is the error you get?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -