Based on many alternate user inputs, I need to modify the structure of the query where the query (not just dynamic Values, but dynamic structure). Example: If they select the customer ID, do not use the branch ID filter, but if they select an empID, then use both empID and branchID filters, plus more criteria There are also, which is just an example .
I may have be made creating all the arguments in the section using the CASE statements, but I feel that it will not be very well adapted? I know that I can dynamically create the sql statement within a stored proc, and I can also use the prepared statement ... but it looks sloppy? Is there any other way that I am thinking?
No comments:
Post a Comment