3 ms·
While this solution isn't sexy, cannot it be just simple switch? switch(int) case 1: age case 2: salary
by tester756 6y ago
While this solution isn't sexy, cannot it be just simple switch?
switch(int)
case 1: age
case 2: salary
- namibj 6y agoI have yet to dream up/see a case where you can't puzzle literals together based on user-query parsing until you get your SQL query assembled.
- corty 6y agoYes, unless the database has custom column names e.g. to add your own properties to some object. But that kind of schema is madness in other aspects as well...