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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multiple values from Jlist to multiple columns selection
 
Similar Threads
Display selected item in JList
How to store and bind to the view containing multiple values for single field?
multiple select dropdown
hows can i retrieve the values from a multiple select list in a jsp??
getting result in textfield using jlist