Created
          May 5, 2014 07:38 
        
      - 
      
- 
        Save sathish-io/41a7acb9d916c9c3a090 to your computer and use it in GitHub Desktop. 
    Oracle escaping '&' character 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | some times, you are in need of doing DML operation that involves strings with & sign in it. | |
| Oracle sql clients treats this as a substitution variables and prompts you to enter value. | |
| For example when you run below select statement; it prompts you to enter value for "T". | |
| select 'A&T' from dual; | |
| To disable this you can disable substitution variables for your session using "SET DEFINE OFF" | |
| Note: & is the default value for DEFINE. | |
| SET DEFINE OFF | |
| select 'A&T' from dual; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment