Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what is the Alternate for AMPERSAND (&) in oracle???????????

nkvkashyapApr 17 2013 — edited Apr 17 2013
Hi All,

This is my query......

select * from
(
select 'abc' a from dual union
select 'def' a from dual union
select 'abc & xyz' a from dual
) where a='abc & xyz';

Output should be 'abc & xyz'.

Since I am using '&' it will prompt to enter some value from my keyboard.

Yes, I know, I will get the output either by using set scan off,set define off, set escape on.

what is the Alternate for AMPERSAND (&) in oracle???????????

The value 'abc & xyz' will be passed from the front end and will be passed to the select statement..........

Regards,
Kashyap Varma N
This post has been answered by Paul Horth on Apr 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2013
Added on Apr 17 2013
13 comments
871 views