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 JDBC and the fly likes how to select particular column name 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 » JDBC
Bookmark "how to select particular column name" Watch "how to select particular column name" New topic
Author

how to select particular column name

nagesh babu
Greenhorn

Joined: Feb 13, 2007
Posts: 1
Hi,

I have a table with four fields which contains only boolean values.

At any point of time, only one field can be true.

can anyone help me in writing the query for the getting the column name that has "true" value.

Thanks,
nageshbabu
Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
Which database you are using ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to select particular column name
 
Similar Threads
Result set type
Multi-level Mapping
update query fired by hibernate!!!!
Mapping document query
restrict queries in association while fetching data....