3 ms·
I've had to do similar in the past. I ended up enumerating all the columns, intersecting that set with the ones submitted by the user, and using the result in t
by function_seven 5y ago
I've had to do similar in the past. I ended up enumerating all the columns, intersecting that set with the ones submitted by the user, and using the result in the SELECT clause of the query.
Not as easy as just dropping in the user's choices, but guarantees they have no control over the resulting query string.