Ways of concatenating string in a prepared statement [duplicate]
This question already has an answer here: What is a NullPointerException, and how do I fix it? 12 answers I have a web application that needs to be stored its data on specific tables depending on the user's input. e.g. if a user input Code "A" their data will be saved to DatabaseA, while if a user input Code "B", the data will be saved to DatabaseB. I need to know if there is way to manipulate the prepared statement in order to just concatenate the code into the end of the prepared statement string. I have 3 tables, MachineProblem2A,2B,and 2C. is there a way to just simply concatenate the code