In the various SQL products I use, a question mark (?) marks an input parameter in a query.
How do I escape that behavior and search for text that contains a question mark, for example…
SELECT *
FROM A_TABLE
WHERE A_FIELD = 'This is a question mark not an input parameter?'
…where the question mark above is a literal question mark, not a place holder. If the answer is product specific, I am currently using Derby (aka Java DB).
You don’t need to escape
?at all. It has no special meanings with theWHEREclause as in the case you posted.