3 ms·
While those telling the user who posted the question wer correct about deleting the comma, this question would have had immensely more value if they had simply
by smoyer 10y ago
While those telling the user who posted the question wer correct about deleting the comma, this question would have had immensely more value if they had simply said "don't build your query that way". There are many ways to mitigate SQL injections in Java - I would have up-voted any answer that responded with (e.g.) a parameter used query. So to me, this question's answers could in fact make it interesting and valuable.