• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting String to ResultSet

 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is it possible to convert String to ResultSet? Is there any function for this conversion?
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the String is a valid SQL query, then maybe. Otherwise, no. What exactly are you trying to do?
 
Shweta Grewal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the String is a valid SQL query, then maybe

Can you elaborate a little bit.
Actually I am giving sql query as a string and getting the result as string, I want to convert thisString result to ResultSet.
Is it possible?
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The normal process is: get a JDBC connection to your database, use it to create a statement, use the statement to execute a query. That process returns a ResultSet. How are you running a query and getting back a String? Could you post a code sample?
 
Wendy Gibbons
Bartender
Posts: 1110
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want a ResultSet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic