Solved

Variables Keeps Popping Up

Posted on 2007-11-30
2
1,184 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to take different types of Oracle backups using RMAN.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now