How to use a update statement which has a string containing '&' -  Pls help

When used the following select statment in SQL plus it is working fine:
SELECT * FROM REDEMPTION_OFFERS
WHERE portfolio=203 AND display_description= '$100 Bed Bath'||' & '||'Beyond Gift Card' AND ext_redemption_type_lc = 'ERT_CERT'
But when using the same statement in a Update statement it is not working. Can some one please help me: Thanks in advance
UPDATE REDEMPTION_OFFERS SET LONG_DESCRIPTION = 'null'
WHERE portfolio=203 AND display_description= '$100 Bed Bath'||' & '||'Beyond Gift Card' AND ext_redemption_type_lc = 'ERT_CERT'

When used the following select statment in SQL plus
it is working fine:
SELECT * FROM REDEMPTION_OFFERS
WHERE portfolio=203 AND display_description= '$100
Bed Bath'||' & '||'Beyond Gift Card' AND
ext_redemption_type_lc = 'ERT_CERT'
But when using the same statement in a Update
statement it is not working. Can some one please
help me: Thanks in advance
UPDATE REDEMPTION_OFFERS SET LONG_DESCRIPTION =
'null'
WHERE portfolio=203 AND display_description= '$100
Bed Bath'||' & '||'Beyond Gift Card' AND
ext_redemption_type_lc = 'ERT_CERT'looks like You are using the UPDATE statement in SQL*PLUS too. Your statement is also working....
SQL> select * from a;
        F1 F2        F3
         1           BED BATH
         2           BED BATH
         5           BED BATH
         3           BED BATH
        -2           BED BATH
        -4           BED BATH
        -1           BED BATH
7 rows selected.
SQL> update a set f3 = 'BED '||'&'||' BATH';
7 rows updated.
SQL> select * from a;
        F1 F2        F3
         1           BED & BATH
         2           BED & BATH
         5           BED & BATH
         3           BED & BATH
        -2           BED & BATH
        -4           BED & BATH
        -1           BED & BATH
7 rows selected.

Similar Messages

  • How to use oracle thin driver with jsp?...pls help

    Hello. I am trying to insert a word file into my Oracle 9i database using JSP. I have tomcat running as my standalone server. So far, i have been using the sun.jdbc.odbc driver to implement all my DB accesses. Recently however, i found out that in order to use Oracle specific objects such as BLOBS or BFILES, i have to use the oracle thin driver or OCI driver.
    So far, i have downloaded the thin driver and put it into the tomcat shared/common folder and also put the .jar file into my classpath. Now, i am having trouble as to how to call the oracle thin driver inside my JSP code.
    My previous code read as:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:Andy","user","pass");
    How do i switch over to the oracle thin driver in JSP? Any help would be much appreciated. Thank you
    Andrew

    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(sConnStr, sUser, sPassword);
    notice the driver --"oracle.jdbc.driver.OracleDriver"!
    and copy the class12.zip to lib path
    if still not work
    change the class12.zip to class12.jar
    good luck

  • How to use the updated value in the same update statement

    Hello,
    I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following:
    create table tb_test (id number(5), tot number(5), mon_tot number(5));
    update tb_test set (tot = 15, mon_tot = tot *15) where id = 1;
    ...I would like to update both tot and mon_tot column, the value of mon_tot shall be determinted by the new value of tot.
    Thanks,
    Edited by: 939569 on 1-Feb-2013 7:00 AM

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • I created a photo album on my iPhone 4s - edited photos etc. but I cannot figure out how to transfer it to my pc (using Windows 8).  The only folder in the iphone drive is the one which has the Camera roll photos :( Help please - I really need the photos!

    I created a photo album on my iPhone 4s - edited photos etc. but I cannot figure out how to transfer it to my pc (using Windows 8).  The only folder in the iphone drive is the one which has the Camera roll photos Help please - I really need the photos!

    The camera roll is not part of the sync process at all.
    You should be importing these photos to your computer regularly as you would with any digital camera.  Youc an organize them on your computer and sync the to the iphone if you wish.
    The photos sync from the computer to the iphone is one way.
    The iphone mirrors the selected content of the computer to which it is synced.

  • Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1.

    Question
    Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1. The security shows permissions for the web site but doesn't recognize that I've been accessing the web page every day since I updated to 6.0.1. Web page trying to access is <http://classic.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:98108.5.99999> This home page worked fine on earlier versions of Firefox and continues with Internet Explorer 9.0.

    Looks like its been fixed for me, not by 6.0.1 but by - Todd Siechen from http://www.dvdthemepak.com
    Check out his post at:
    http://discussions.apple.com/thread.jspa?threadID=335417
    Todd... I love you xxx
    After having a nightmare since first day of version 6.0.0 and still no fix after 6.0.1, even after Apple requested the files... You fixed my problem... Checked for duplicate fonts and found about 5, selected "Resolve Duplicates" and everything great, even with old projects... You should work for Apple!
    Check out the 2 posts:
    http://discussions.apple.com/thread.jspa?threadID=313109
    http://discussions.apple.com/thread.jspa?threadID=366383
    1) The first and biggest culprit we found to be causing problems is with font issues. In order to alleviate this problem, open Font Book and make sure all the Fonts that are turned on have no dots next to them. If they do then select them and select "Resolve Duplicates" from the Edit menu. If you are using a different font manager then use whatever tool is available to make sure no duplicate fonts are loaded. iDVD 6 is very sensitive to this.
    Many many many many many many many many many many many many many thanks.
    Regards,
    Charles Teton
    United Independent Pictures Ltd.
    http://www.makingmymovie.com

  • Updating ARDT table without using direct update statement

    hi,
        can any one guide me how to update REMARK field in the ADRT table without using direct UPDATE statement. It would be helpful if any one can tell me the bapi or a function module with a sample code.

    Hi                                                                               
    <b>SZA0                           Business Address Services (w/o Dialog) </b> ADDR_PERSONAL_UPDATE                                                          
    ADDR_PERSON_UPDATE                                                            
    ADDR_PERS_COMP_UPDATE                                                         
    ADDR_UPDATE                                                                   
    these are the four function modules which will update the (Business Address Services) reward if usefull
    check these is there any  help ful for u or not

  • How to use the Include Statement in the BADI

    Dear All,
            I am trying to implement the BADI. So i need to use the Include in the BADI.
    How to use the Include statement in the BADI. I cant able to use it in the Public, Private and protected statement.
    Where should i mention that,,,,
    Thanks
    Yogesh

    Hi Sharat,
      Thanks for your reply.
    I need to use the BADI HRWPC_PCR_APPR_FORM. In which the values are available in the Container. So if i need to use the container values then i need to use that include <cntain>.
    Is there any possible ways to make it.
    Thanks
    Yogesh

  • So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • I have several episodes of a TV show that say "download error, tap to retry" and when I do it just repeats that error message.  Can I get it to work? If not can I get reimbursed for the episodes I'm missing?  I'm using an iPad one which has worked fine B4

    I have several episodes of a TV show where it says download error, tap to retry and when I do it repeats the error message.  Can I get it to work or get reimbursed for the ones I'm missing?  I'm using an iPad 1 which has worked fine for all the others.

    Hi AlpineJean,
    I'm sorry to hear you are having issues downloading some episodes to your iPad.
    I would first suggest you sign out of your iTunes account on your iPad, restart the device and sign back in.
    Settings > iTunes & App Stores > Tap on your Apple ID account > Tap Sign Out
    Click on the link below for additional troubleshooting steps with more details and screenshots.
    I've quoted some helpful highlights for you:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    To view or download previously purchased:
    TV Shows on iOS
    Open the iTunes Store on your device.
    Make sure you are signed in with the same Apple ID you used for the original purchase.
    Tap More from the bottom navigation bar.
    Tap TV Shows.
    Locate the TV show episode or series you would like to download.
    Once you've located the TV shows you are looking for, tap the download button.
    The TV show will begin downloading.
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.
    If this does not resolve your issue, please follow these instructions for support from the iTunes Store:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Have a great day!
    - Judy

  • How can i see the URL which has  length more than 255 chars in fucnction

    Hello Every body....
      I am facing one problem....I have a function module which returns URL in one table
      but in the function module display i am able to see only 255 characters,but the URL is more than 255 Characters..How can i see the URL which has the length more than 255 characters..
    In the Table the fields url length is 4000 chars.....
    but display it is showing only 255 chars.....
    Please Help me...??????????

    Hello,
    Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:
    * Create document
          clear mail_line.
          move 'This is a test E-Mail'(d01) to mail_line.
          concatenate mail_line
                      cl_abap_char_utilities=>newline
                      into mail_line.
          append mail_line to l_mailtext.
    What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.
    Vasanth

  • HT1918 i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    You will need to update the address and country that you have on your account, and if using a credit card then that will need to be registered to that new address - you should be able to update them logging into your account via Store > View Account menu option on your computer's iTunes
    Changing account info : http://support.apple.com/kb/HT1918

  • How do I check my email which has been sent to my apple ID

    How do I check my emai; which has been sent to my apple ID. If I to mail on my settings, it says icloud account is not verified. Idf I go to mail, only my msn.com emails show up

    Apple ID ( username) is set at apple.com. If I try to change it to my msn account, it says it is already in use and cannot be done

  • How to use an if statement in javascript code

    Hello,
    I have a batch processing script to search for text "employee signature" on each page in a multiple page file and to then list in the console any pages that do not have the "Employee Signature" text included.
    The script is not yet functional as an if statement needs to be included.
    Can anyone please advise how to use an if statement in javascript code?
    var numpages = this.numPages;
    for (var i=0; i < numpages; i++)
    search.query("Employee Signature", "ActiveDoc");
    console.println('Pages that do not include an employee signature: ' + this.pageNum +' ');
    Any assistance will be most appreciated.

    Thank you very much for your assistance try.
    I have modified the code as suggested and the page numbers are now listing correctly, thank you, but....................,
    The console  lists every page as having an "employee signature" when there are pages in the document that do not have an employee signature.
    The code (revised as follows) is not processing the "getPageNthWord part of the statement" in the console report?
    Can you please advise where the code needs reworking?
    var ckWords; // word pair to test
    var bFound = false; // logical status of found words
    // loop through pages
    for (var i = 0; i < this.numPages; i++ ) {
       bFound = false; // set found flag to false
       numWords = this.getPageNumWords(i); // number of words on page
       // loop through the words on page
       for (var j = 0; j < numWords; j++) {
          // get word pair to test
          ckWords = this.getPageNthWord(i, j) + ' ' + this.getPageNthWord(i, j + 1); // test words
          // check to see if word pair is 'Employee' string is present
          if ( ckWord == "Employee") {
             bFound = true; // indicate found logical value
             console.println('Pages that includes an employee signature: ' + (i + 1) +' ');
             break; // no need to further test for this page
          } // end Employee Signature
       } // end word loop
       // test to see if words not found
       if(bFound == false) {
             console.println('Pages that do include an employee signature: ' + (i + 1) +' ');
        } // end not found on page  
    } // end page loop
    Thank you

  • How to use Delta Update in InfoSpoke

    How to use Delta Update in InfoSpoke & to include in Process Chain

    Initialization / delta updates are what we do every day, and it is usually the update method of choice for most data targets. The delta mechanism ensures the consistency of transactional data. So if some data is wrong in the early stage of data flow, we have to not only correct the data itself but also the related records in subsequent data targets.
    Unfortunately, such data can't be avoided in daily extractions. In some situations, the data to ODS is correct but reports errors while loading from ODS to Cubes.
    Here is one example:
    Some FI documents transferred in R/3 with LSMW's background mode and one of the line items 'Negative posting signal' was inserted with 'x' while the right one should be 'X'.
    This line time stays cool in my ODS Z1CCWO01, but encounters errors while loaded into several Cubes when the process chain's running.

  • How do i remove a file which has attached to the outside of a window

    how do i remove a file which has attached itself to the out side of a windownext to the control tabs?

    Ah, do you mean it's showing in the header bar?
    If so, hold cmd (⌘) while you drag it off to the desktop. It'll disappear in a puff of virtual smoke.
    Don't worry, you won't lose the file; the icon in the header  (and those in the sidebar) is just an alias.

Maybe you are looking for

  • Transfered photos, now I can't delete them.

    So I've uploaded some pictures on my old computer and then, I've transfered my iTunes library to my new computer. But when I synced, there was still a copy of the same photo library from  my old computer and a new one with the same pictures in it. No

  • How to recover notes that have been deleted

    I Have deleted my notes by mistake and I'd like to know how to recover them without connecting to a computer

  • N8 Skype video calls

    Will Nokia come up with a solution to use the N8 to make videocalls using Skype? The apple iPhone is able to make such calls, can the N8 do the same,  or is it a problem with Symbian and  the Skype org. software dept.? If there is a solution to updat

  • [Solved] Mount webdav address via terminal or Nautilus?

    Have a webaddress https://webdav.pct.edu.  I tried davfs, no luck , I dont know how , Tried :  mount //webdav.pct.edu/username_on_server /mnt How is this done? detailed instructions please THANKS!!! Last edited by degmic71 (2009-03-27 00:27:07)

  • Entourage Send/Receive

    After I installed Snow, my Entourage does not receive mail unless I receive it manually. The received mail does not show on my Icon in the Dock. I looked at Preferences & Account Settings and I can't find any setting that would have to change. Has an