Re: HELP: SQL+ : How to use & in strings in PL/SQL scripts

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Fri, 07 Jan 2000 08:46:18 -0500
Message-ID: <6frb7s8um0ot7tvhk5qoehvtfvvvkpgt2v_at_4ax.com>


A copy of this was sent to "Peder" <peder.pedersen_at_fillmbyen.com> (if that email address didn't require changing) On Fri, 7 Jan 2000 12:42:45 +0100, you wrote:

>Hi all,
>
> Does anyone know how to use & (ampersand) in strings in PL/SQL packages,
>without SQL+ prompting for variable value, when I run the packages with _at_.
>
>Thanks,
> Peder
>

SQL> set scan off

or

SQL> set define off

or use chr(38) in place of & in the source. (eg: instead of 'Ben & Jerry', code 'Ben ' || chr(38) || ' Jerry'....

-- 
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'...
Current article is "Part I of V, Autonomous Transactions" updated June 21'st
 
Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation
Received on Fri Jan 07 2000 - 14:46:18 CET

Original text of this message