aspose file tools*
The moose likes JDBC and the fly likes Multiple values from Jlist to multiple columns selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Multiple values from Jlist to multiple columns selection " Watch "Multiple values from Jlist to multiple columns selection " New topic
Author

Multiple values from Jlist to multiple columns selection

Sandeep Swaminathan
Ranch Hand

Joined: Apr 23, 2008
Posts: 52
I have a jlist and when i select single or multiple values from it i must get it substituted as column names

example ,
A,B,C,D,E are jlist values . So if i select A and B from jlist the statement should be like "select A, B from ABCDE"

What to do?


Music is all around us. All you have to do is just LISTEN to it,
Sandeep Swaminathan
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30753
    
156

You would build the SQL statement by concatenating strings.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple values from Jlist to multiple columns selection