Answers for "sql injection query example"

SQL
0

mitigation of sql injection

String tableName;
switch(PARAM):
  case "Value1": tableName = "fooTable";
                 break;
  case "Value2": tableName = "barTable";
                 break;
  ...
  default      : throw new InputValidationException("unexpected value provided"
Posted by: Guest on April-08-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language