Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with resultset

 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JTextField c_name. I have a focus listener added to this.I enter a value in this box and store this value in a variable cust_name. I pass this variable to the select statement to retrieve values from the database. The problem is I do not get all the rows. The resultset returns just one row( whichever it finds first). But when I execute the same statement in SOLPlus, the results are obtained(even duplicate rows).Please help and thanks in advance.
 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it working! I had not committed after inserting values in the table. Now the same code works fine
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!