Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Currently I have a web services that connects to PostgreSQL using the JDBC. As of now the query returns as one long string as it was the only way I could get it to work. I would like to returned queries with column names and then the value so that the result can be parsed and populate a table using ksoap2 for android. I have tried getting the results as objects but the return is still one result string. Any help or tutorials on how to get the query result to return so that it can be parsed would be great. e.g:

anyType=column{value}

Thanks

share|improve this question
Since you have not shown your code, your SQL, the output, the desired output, the table structures you are querying, or any other details this is nearly impossible to usefully answer. – Craig Ringer Apr 20 at 10:24

closed as not a real question by Craig Ringer, user93353, Tim Bish, Raghunandan, Javier Apr 20 at 16:46

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

Time to read!
I suggest you read at least a bit of the Java Tutorials: JDBC Basics.
And then there is Springs JdbcTemplate, MyBatis or Hibernate, where each adds another layer of abstraction (and complexity) on top of the aforementioned framework/technique.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.