DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: use a & as a string not for a substitution variable

  1. #1
    Join Date
    Feb 2001
    Posts
    6
    I want to concantenate a string that includes an & but
    I don't want SQLPLUS to prompt me for a variable.

    ie; select 'This is a test &' || name from table

  2. #2
    Join Date
    Nov 2000
    Location
    Baltimore, MD USA
    Posts
    1,339
    SET DEFINE OFF;

    ...will turn that off for you, then

    SET DEFINE ON;

    ...to turn it back on after the insert (if you actually want it on :) )

    - Chris

  3. #3
    Join Date
    Feb 2001
    Posts
    6

    Smile

    Thanks works good.

  4. #4
    Join Date
    Oct 2000
    Posts
    123
    That is not a problem at all, just go ahead and include "&" within single quotes.

    Take care

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width