I have trouble with my database: I need to prepare my insert commands for any kind of escape characters like " ' ? /
. I could encode them using the key that I have written, but since this takes a small portion of time to calculate and insert, I'd like to know if there is any kind of insert that doesn't collide?
I'm currently using this
String selectSQL2 = "SELECT * FROM "+postid+" WHERE name="+"'"+name+"'";
ResultSet tableExistance = null;
tableExistance = conn.prepareStatement(selectSQL2).executeQuery(selectSQL2);