Actually, a more specific method involves the SQL*Plus variable, "DEFINE". You can confirm the default contents of this variable with:
Code:
SQL> show define
define "&" (hex 26)
SQL> select 'Fine & Dandy' from dual;
Enter value for dandy: Tuning
old 1: select 'Fine & Dandy' from dual
new 1: select 'Fine Tuning' from dual
'FINETUNING
-----------
Fine Tuning
You can then turn it off with:
Code:
SQL> set define off
SQL> show define
define OFF
SQL> select 'Fine & Dandy' from dual;
'FINE&DANDY'
------------
Fine & Dandy
You can also re-assign any non alpha-numeric character you want to be the prompt character:
Code:
SQL> set define !
SQL> select 'Bang! Went the explosives' from dual;
Enter value for went: Sounded
old 1: select 'Bang! Went the explosives' from dual
new 1: select 'BangSounded the explosives' from dual
'BANGSOUNDEDTHEEXPLOSIVES'
--------------------------
BangSounded the explosives
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.