I have the following SQL line (within a loop):
ResultSet rs = stmt.executeQuery("SELECT * FROM item WHERE itemName='"+ string.get(1) +"'");
string.get(1) contains a different string each time the loop goes.
in the current SQL line I will revive only the lines that are equal to string.get(1),
but I'd like to get all lines that string.get(1) is a sub string of itemName
I know it should go: %string.get(1)% however I don't know the exact syntax.
Anyone can help?
likeclause ofSQL?