Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PL/SQL - How to handle &

Status
Not open for further replies.

wellster34

Programmer
Sep 4, 2001
113
CA
Hi,

In PL/SQL, the & is used to a variable holder. So, if you tried to make a variable like:

test_tx := 'Test one & two';

it asks for the value of two when trying to execute the code.


Is there a way to make PL/SQL accept the text as is? So, basically ignoring the & so that the text keeps its original value?


Thanks for your time.
 
I found a solution:

SET ESCAPE ON
SET ESCAPE "\"
test_tx := 'Test one \& two';


It works!!! yeah.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top