Table Name : Student ---------------- ID | NAME | ADDRESS ---------------- 1 | Mark | Queen\'s Road 2 | Ann | Church Road 3 | Sam | Temple Road
I need to get si
im not sure about oracle but in Mysql following query will work for your purpose
select * from student where address like "%'%"
You can escape a quote in Oracle by doubling it.
So, using the regular LIKE
operator:
SELECT *
FROM student
WHERE address LIKE '%''%'
With REGEXP_LIKE
you'd have to perform a similar escaping:
SELECT *
FROM student
WHERE regexp_like (address, '''+')