Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to suppress special characters in query
Harvinder Singh schrieb:
> Hi,
>
> We have a query like following that includes the & symbol and since this
> is a special character so Oracle prompts for the input. Is there any way
> to suppress this special character in a query without using the set
> define off option at sqlplus session?
>
> Select * from tab1 where col1 like = 'A & B'
>
> Thanks
> --Harvinder
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
>
SQL> set escape '\'
SQL> select * from tab1 where col1='A \& B';
COL1
Best regards
Maxim
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Feb 05 2007 - 15:16:21 CST
![]() |
![]() |