mysql - how to use special character in prepared statement java -



mysql - how to use special character in prepared statement java -

im not frequent user of clause, have requirement want fetch files based on name . tried with

"select * files filename "+"%"+"?"+"%";

next tried escaping character

"select * files filename "+"\\%"+"?"+"\\%";

both ways when create prepared statement , execute giving error ,

please help me how can utilize % ?

thanks in advance

i agree cowls answer, think want percent sign after search string, based on initial post.

so, like:

"%myfilename%"

java mysql prepared-statement

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -