Solved

Variables Keeps Popping Up

Posted on 2007-11-30
2
1,187 Views
Last Modified: 2008-02-01
This line of code in TOAD is causing a Variables pop up to come up everytime I try to run this is in the sql editor.  Is it because of the ampersand in the string?  
and (colA not in('A&A ABCD EFG','A & A ABCD EFG') or colA is null)
0
Comment
Question by:error_prone
2 Comments
 
LVL 14

Accepted Solution

by:
GGuzdziol earned 500 total points
ID: 20384767
Yes it is.

and (colA not in('A' || CHR(38) || 'A ABCD EFG','A ' || CHR(38) || ' A ABCD EFG') or colA is null)
0
 
LVL 34

Expert Comment

by:johnsone
ID: 20384787
Yes, it is because of the ampersand.

In SQL*Plus, you would use the "set define off" command to turn that off, or you can use the escape character (usually \) to have it not do the variable substitution.  Another way around it is to replace the & with CHR(38).

I don't use TOAD, so I cannot tell you exactly how you change those settings in that tool.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question