-1
I have the following query inside a file jsp in Java.
String sql = "SELECT * FROM products WHERE productName = ? ";
I would like my consultation to ignore Camel case and return all the words that were part of the string. For example, Table return table for Camel case and phone return iphone, cellphone, etc...
How can I do that?
I’ve tried to use %, LIKE and it doesn’t work.
"Table return table to case" ?!!
– José Diz
I think you want to do
SELECT * FROM products WHERE LOWER(productName) LIKE '%' + nome + '%';– Piovezan