Dynamically assembling SQL queries in Java

Posted by kd on Stack Overflow See other posts from Stack Overflow or by kd
Published on 2010-04-21T17:06:45Z Indexed on 2010/04/21 17:53 UTC
Read the original article Hit count: 168

Filed under:
|
|
|

What is the best way to assemble an SQL query with join conditions dynamically? I don't want to hard code the query for each different condition on a webpage or a set of webpages. Is it even feasible?

I got as far as being able to assemble simple queries but i got stumped when i needed to insert join conditions, i.e. how to figure out dependencies for joins etc.

© Stack Overflow or respective owner

Related posts about java

Related posts about Oracle