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
I have used CHR(63) in my query and that helped resolving my issue.
Here is what I did for example:
This helped getting the string as :
I have then used this query inside the insert statement, and ran through PreparedStatement. Worked perfectly fine. The CHR function is an in built function and can be used similar to other oracle functions. You can use this if you know the query will not going to be repeated lots of times.select q'[