We need to store a select statement in a table
select * from table where col = 'col'
But the single quotes messes the insert statement up.
Is it possible to do this somehow?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Oracle 10G on there is an alternative to doubling up the single quotes:
I used a double-quote character (“), but you can specify a different one e.g.:
The syntax of the literal is:
It isn’t obviously more readable in a small example like this, but it pays off with large quantities of text e.g.