Solved

Variables Keeps Popping Up

Posted on 2007-11-30
2
1,189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

730 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