Question mark ‘?’ characters as text in JDBC

Site menu:

Topics

Recent Posts

Blog

 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Past Posts

Links:

Archive for August 4th, 2008

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 [...]