I'm getting error while performing Sonar for my code:
Use a variable binding mechanism to construct this query instead of concatenation
"SELECT ipfrom, ipto, city from ipAddTable where " + ipAddress + " between ipfrom and ipto";
For SELECT equal to something, we can use LIKE ? For BETWEEN statement, I'm not sure.
Any idea on how to solve it?