I\'d like to create a JDBC PreparedStatement like:
SELECT URL,LOCATE ( \'?\', URL ) pos FROM Links WHERE pageId=? ORDER BY pos ASC
Where the 1s
If it doesn't work with your JDBC driver you could bind it as a String ?,
String
?
ps.setString(1, "?");