Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Variables Keeps Popping Up

Posted on 2007-11-30
2
Medium Priority
?
1,192 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 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

927 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