Question mark ‘?’ characters as text in JDBC

Site menu:

Topics

Recent Posts

Blog

 

July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Past Posts

Links:

Tag: Question Mark

Question mark ‘?’ characters as text in JDBC

August 4th, 2008 by Scott Selikoff

Many people wonder how insert strings containing question mark characters into their database queries via JDBC. For those unfamiliar with the problem, ? is a reserved character in JDBC queries for parameterizing inputs. For example, if you have run the same query searching for a user but each time with a different name, JDBC offers [...]