I am using jdbc to select data from a mysql database. I am performing a search query,
stmt.executeQuery("SELECT (NAME) FROM tablename WHERE FULLNAME LIKE '"+"a string'"");
How do I perform a case and whitespace insensitive search?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
within the query you can use the function lower() to convert the string to lower case or upper() to convert the string to UPPER CASE and trim() to remove excessive spaces at beginning and end.
Your query will look something like this