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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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