Results 1 to 2 of 2

Thread: Put me knowledge for this Escape Query

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    72

    Put me knowledge for this Escape Query

    What does the command set escape on and set escape OFF does in SQL. I happen to see this in a code but could not understand what is actually happening. Someone help me to fish out this.


  2. #2
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: Put me knowledge for this Escape Query

    Sometimes you may need to use a special character such as & or _ in a query that is used by SQL*Plus. You can define an escape character. You may then use it in queries before a special character. It is often useful in automated scripting. To escape the quote character use multiple quotes

    set escape \
    select 'It''s mine\; I like it' from dual;


    You may also turn escape on and off.

    set escape off


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact