troubleshooting Question

Building Query dynamically in ibatis

Avatar of json123
json123 asked on
ProgrammingJavaWeb Applications
4 Comments1 Solution310 ViewsLast Modified:
I need help with this specific scenario, I need to execute sql based on user selection. When user selects multiple conditions I need to build the query by addign multiple and, or conditions to the SQL. How can I do this using ibatis? Should I create sql statements for every possiblity and execute? or can we put this conditions into a variable and pass that to substitute in the SQL ? I hope there should be some better way. If any one point me into the right direction then that would  be a great help. Please explain to me in detail..

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros