views:

36

answers:

1

Hi

How do I run a query that contains ( ' ) ?

For example:

select * from A where B like 'aa'bb'

Working on Oracle 10g

Thanks in advance

+7  A: 

Escape a single quote by adding another quote before. Try:

select * from A where B like 'aa''bb'

Ed Harper