Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQLplus syntax
On Wed, 04 Aug 1999 13:50:50 +0200, Guillaume BRIALON
<guillaume.brialon_at_synlog.com> wrote:
>Hi,
>That's an hour I try to insert strings including a '&' character.
>e.g 'Jim & Judie'
>The problem is that for SQLplus, all that follows a '&' is a variable
>name!
>And then it asks me the value for Judie!
>How to escape this f... '&' ?
In SQL*Plus, '&' is the default character used to prefix substitution variables. Thus, it thinks that you are specifying &Judie as a substitution variable.
In SQL*Plus or in your script, you can either set this to some other character via:
SET DEFINE <some_other_character>
or simply turn variable substitution off with:
SET DEFINE OFF
>
>Thx,
>Guillaume.
>
Thanks!
Joel
Joel R. Kallman Oracle Service Industries
Columbus, OH http://govt.us.oracle.com jkallman@us.oracle.com http://www.oracle.com
![]() |
![]() |