How does one escape special characters while compile the package.

Hi
The below is my function, while compiling the function in SQL plus it’s asking the substitute values, still I want to & symbol this column 'S&P Long Term Rating'
now my question is how to avoid while compiling substitute values
FUNCTION get_attribute_list RETURN t_ref_cursor AS
lv_array varchar2_table_type := varchar2_table_type('Emerging Market Flag'
,'Region Code'
,'Region Name'
,'Moody''s Rating'
,'S&P Long Term Rating'
,'Credit Rating'
,'Region ISO'
,'Loan Country Code'
,'Loan Country Name'
,'What If Emerging Market Flag');
lv_ref t_ref_cursor;
lv_step_name a_run_log.step_name%TYPE;

Frank Kulash wrote:
SET DEFINE OFF is the best solution, as long as you don't need substritution variables elsewhere in the function.Agreed, however, just to toss out an alternative I use alot:
anytime I encounter a "special" or "odd" character (ie &, CR, LF, TAB, whatever ...)
I usually resort to stuffing it into a constant variable :)
Of course, the OP's code might beg why the hardcoding in the proc? If the values being passed in via parameters, none of this is an issue. :)
(in other words - if the OP is encountering this "issue" with a simple test - it might be worth mentioning - it might not be an issue with the "production" code - assuming things are being passed in via parameters)
set serverout on
declare
   lc_Amp   VARCHAR2(1) := CHR(38);   -- Ampersand
   lv_var   VARCHAR2(100);
begin
   lv_var := 'S' || lc_Amp || 'P Long Term Rating';
   dbms_output.put_line ( lv_var );
end;
/

Similar Messages

  • How does one enter special characters, in particular french accents into text in PS Elements?

    I'm trying to produce some artwork in Photoshop Elements with some French text in it, so I need to know how to input special characters for the letters with accents. Anyone got any ideas - I've tried looking for a glyph menu but that doesn't seem to exist on Elements.

    Which operating system are you using and version of photoshop elements?
    Photoshop elements doesn't have a Glyphs panel or menu.
    Here's a way:
    windows
    http://symbolcodes.tlt.psu.edu/accents/codealt.html
    mac
    http://symbolcodes.tlt.psu.edu/accents/codemac.html

  • How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8)

    How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8) since November until now.  Mail will no longer download on the MacBook Pro and keeps asking for my password.

    Mail should still be usable with your machine - but you'll need to update the settings to conform to the requirements of your system. Check with your ISP (like ATT, etc.) for the settings that will work with your Mail. Once you've updated this, you should be able to email like before.
    For example, my ISP required that I go to Mail Preferences/Accounts and make sure the details conform to your email settings.
    I have no idea of what your ISP is or what the settings might be, but this is likely the source of the problem.

  • How to create blocks on Procedures? How does one handle I/U/D on the block?

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

  • How does one use Sound sticks while using HDMI at the same time ??

    How does one use Soundsticks while using HDMI at the same time ??

    Hi Caleb,
    This isn't a precise answer but a possible workable solution. SoundSource puts a menu extra which allows you to switch input/output and has an option for Auto-Switch to Headphones. The auto-switch feature doesn't work with USB headphones but I believe it will with 'regular' headphone plugs such as you use.
    http://www.rogueamoeba.com/freebies/
    (Oh, did I mention it's free Universal and works with Leopard?)

  • How does one use an external microphone with the internal camera?

    I want to use the internal camera because I don't have anything better but I want to use an external mic to record video and sound simultaneously, for a video blog. How does one accomplish this? I'm getting no help from the manual.

    Try this. Connect your external mic, either through the audio line in port or, into a USB port if it is a USB mic and then go to System Preferences under the Apple and select the Sound icon under Hardware. Click on your mic shown in the list of input devices.
    Hope that works for you.
    Forest

  • I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one view a movie downloaded to the MacAir on a TV screen?

    I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one go about viewing a movie downloaded to the MacAir on a TV screen?

    Welcome to Apple Support Communities
    That's exactly what you need. A Mini DisplayPort to HDMI adapter and a HDMI cable. See > http://support.apple.com/kb/HT4241?viewlocale=en_US
    This is the only way to view a video on the TV. After connecting your MacBook Air to the TV, image on your TV should show immediately. Then, press Command and F1 keys to mirror your MacBook Air display, and open the video

  • While Compile the Package it shows "alter session set plsql_trace=false"

    Hi,
    My package was working fine and suddenly the status is invalid
    so i tried compiling the package that time sql developer got hanged, package also not getting compiled.
    i asked DBA to find out the status, they said the following query is running from your machine.
    "Alter session set plsql_trace=false". once they kill the session, sql developer got released.
    What could be the reason for this?? please help me to resolve this.......
    Thanks,
    G

    Most "set events" are workarounds or needed for Oracle support to do some debugging. Using them is at your own risk, and probably not supported by Oracle if you get into trouble.

  • How does world_lexer index special characters in Japanese database?

    Does any one have any information on how world_lexer indexes special characters (such as $, #,& -, _ etc.) in Japanese database?
    Your help will be highly appreciated.

    We worked this out via e-mail - the short answer for posterity is that the special characters are not added to the token list and printjoins is not an attribute for the world_lexer.
    -Ron

  • Gettign special characters while sending EMAIL Package

    Hi All,
    I wrote a PLSQL package to send a mail.
    While receiving mail , i am getting "!" special characters in the email.
    Anybody is any idea to avoid the special characters.

    user10761645 wrote:
    I wrote a PLSQL package to send a mail.
    While receiving mail , i am getting "!" special characters in the email.
    Anybody is any idea to avoid the special characters.Write 7bit ASCII e-mail payloads, and do not use HTML formatting.
    Remember that your code creates the payload (Internet Message Body) that is delivered (via SMTP) to the mail server. Your code controls the complete content of that message body.
    And when in doubt, look at the raw message payload received by the e-mail reader. E-mail readers will often render it differently, depending on the formatting rules and styles supported by that e-mail reader. And this is true even for plain text e-mails.
    If you can show us how the e-mail looks like and the code used to generate, perhaps we can be of more help.

  • How does one move a scanned document from the scanner to the SD card?

    I use a DELL laptop, plus the DELL All in One printer Model 922. I can scan something but then I would like to place it on my card for viewing on my TX.  I do scan it as a picture. Is there any other way? Is there another application I should be looking for?
    Post relates to: Palm TX
    This question was solved.
    View Solution.

    If you scan it as a picture, just HotSync it over using Palm Desktop and the Media button in the left side column.
    If your scanner can do "OCR" (Optical Character Recognition) you might be able to scan it as a Word document and then use Docs2Go to transfer it.
    I'd suggest upping the scan resolution a bit to give you the option of enlarging the image on your TX.  While viewing the picture, press the UP direction on the 5-way pad to Zoom In on the picture.
    WyreNut 
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How does one center a html div to the stage (already centered) ?

    I added a HTML form to my edge project.
    It is visible in preview, but takes up the whole time line, also I can't center its position.
    I only need it in certain frames.
    My stage is centered, already and overflow is visible by design.
    I tried to do it in dreamweaver (where these were built), no luck. I have several html forms to embed in my project
    and I'm avoiding rebuilding each one. Help is needed...
    Thanks
    Henry the begginer

    On the elements you want to center try this:
    .css({margin: "0px auto", position: "relative", left: "0px" });

  • How does one enter their personal password in the dashed format required?

    I am trying to log into my office imac remotely and cannot figure out how to input my "personal password" in the format provided.
    How do you use the dashed display that only offers places to input a couple of letters?

    Sorry you are having difficulty, an agent with access to your account will reach out to you directly by email, private message in the Forums and/or the billing telephone number on your Verizon account for more information to help you resolve your issue.

  • How does one set up remote access via the internet to access files stored on the Time Capsule using airport utility 6.1

    I was just wondering if anyone can provide me with instructions please on how to set up remote access via the internet to the time capsule when away from home?
    I am running OS X Mountain Lion operating system and have Airport Utility 6.1.
    Many thanks to you all for your help.

    I think the instructions should be all in BTMM with iCloud.
    Instructions are all there.
    http://support.apple.com/kb/ht3486

  • In Pages, how does one 'Save As' - I only have the option 'Save' which wipes earlier versions

    how can i save a newer version of any document in Pages without losing the earlier version?
    What Microsoft so neatly do with either 'Save' or 'Save as"?

    Brilliant thank you, only on mine it is called alt as I have only just discovered, and lo, as you say, Save As actually appears!
    Apple isn't so obstinate after all - but why do they make it so difficult to find their simple solution? I even bought a book about switching (O'Reilly's) and nothing is mentioned about any of this.
    I am very grateful to you all, now I have two options!

Maybe you are looking for