This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Native Sql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Native Sql" Watch "Native Sql" New topic
Author

Native Sql

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have a requirement where i need to fetch data from 2 tables. For this, i used joins.

See the following code:



My Question is that why does it prints 1, when i have queried for 3 columns? This sql query when executed in SQL console, displays a single row with 3 columns. Is something wrong with my code?


kunal
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Native Sql
 
Similar Threads
processing resultset
Null pointer exception
What is wrong with my Select Query?
DELETE SQL Question
What is wrong with my Select Query?