Need a solution for updating values in table

My oracle version is 11 and my table name is nit_xml in which column name is cust_dtls
Data's of nit_xml table
<root>
<Cust_dtls> Nitesh </Cust_dtls>
</root>
I just want to update Nitesh to Nit ..
Its i inserted values through this way
INSERT INTO nit_xml
VALUES (
'<root>
<Cust_dtls> Nitesh </Cust_dtls>
</root>'
So i tried updating in my own way as like this way
UPDATE nit_xml
SET cust_dtls = '<root>
<Cust_dtls> Nitesh </Cust_dtls>
</root>'
WHERE cust_dtls = '<root>
<Cust_dtls> Nitesh </Cust_dtls>
</root>';
But not working so can anyone give me ideas on XML as how it works and is it possible or not to update through query .. Its note that i want to update column cust_dtls based on same column value and not any other datatype as number or varchar2 because based on other datatype it worked easily and second thing its i am using TOAD application so in that manual updation is possible which is fine but i need to update through query directly ..
Regards,
Nitkhush ...

Niteshkhush wrote:
My oracle version is 11 and my table name is nit_xml in which column name is cust_dtls
TABLE nit_xml
Name Null? Type
CUST_DTLS XMLTYPE
This is new data I have inserted newly now ..
<H>
<cust_dtls>
<cust_name>Nitesh</cust_name>
<cust_phone>9790755104</cust_phone>
<cust_place>Ambattur</cust_place>
</cust_dtls>
<x2>
<cust_name>Bharathi</cust_name>
<cust_phone>123</cust_phone>
<cust_place>Mylapore</cust_place>
</x2>
</H>
Update query :
UPDATE nit_xml
SET cust_dtls = UPDATEXML (cust_dtls, '/root/cust_phone/text()', 132345)
WHERE TRIM (EXTRACT (cust_dtls, '/root/cust_phone/text()')) = 9790755104;
Its showing as 0 rows updated i cant find out any reason as what's happening .. I want to know also as why without TRIM its extraction is not possible ...Your XPath is incorrect. it should be /H/cust_dtls/cust_phone/text(). You dont have a tag as root. Its H.

Similar Messages

  • Need a PLSQL API for update the oe_order_headers_all table

    Hi all,
    I need a PLSQL API for update the oe_order_headers_all table.
    Anyone know please help me.
    Regards,
    M.Soundrapandian.

    Use the Process Order API to update this table.
    Note: 746787.1 - Process Order API In Order Management
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=746787.1
    Oracle Order Management Open Interfaces, API, & Electronic Messaging Guide
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115omapi.zip
    Oracle Integration Repository
    http://irep.oracle.com

  • Create transaction for update a custom table

    Hi,
    I have a custom table Z****. What are all the steps to create a transaction for updating my custom table? I don't want to use SM30 anymore.
    Thank you.

    Create a Table maintainence through the maintainence generator.
    Open table in SE11, goto utilities => table maintainence generator.
    Once the generator is created,
    In the same screen of generator - Goto Environment => Transaction Code
    Select Transaction Code with Parameter.
    In the default values - Enter the Transaction as SM30 . Select skip first screen.
    In default values at the bottom
    Add
    screen field = VIEWNAME and value = Ztable name.
    screen field =UPDATE  and value = 'X'.
    Edited by: Pranu Pranu on May 19, 2010 2:36 PM

  • Lsmw for updating values in asset mater ( AS92 TCODE)

    hI,
    is there any standard reports for updating values of asset master ( as92) in LSMW.
    please provide necessary information.
    thans & red,
    Hari priya

    Priya,
    Standard report is not there to update the Asset master.
    Use BAPI to update the Asset master in LSMW:
    Business object - BUS1022
    Method: Change
    Message type: FIXEDASSET_CHANGE
    Basic Type: FIXEDASSET_CHANGE03
    Regards,
    Kiran Bobbala

  • TS1702 Has anybody come up with a solution for updating the apps...!!!????

    Has anybody come up with a solution for updating the apps ....!!!!????

    Yes, I updated all the time.
    What's your problem.

  • Hi all, i need to create a one method in assistance class for updating the custom table.

    Req as follows : 
    1. i need to create one method in a assistance calss  for updating custom table .
    2. now i  have to pass the multiple entries to that table then inside the method based need to update the Ztable. based on this entries
    3. My internal table is having 2 fields ( Customernumber (key field) , Shiftloc ).(Multiple entries ex : 500)
       based on customernumber need to update the new shiftloc in my custom table.
    Can any one give some inputs please. i have doubt can we pass mupltiple entries (internal) as a importing parameter to the method?
    Cheers,
    Venu

    Hi rama,
    thank you for your promt reply.
    i have one more query. Here i need to update the only Shipt to adress for particular customer number.
    i have written the code as below. Please clarify this code will work for my requirement.
       method UPDATE_SHIPTO.
      data : Lt_contract type ty_update_shipto_t.
      data : ls_contract like line of  Lt_contract .
      REFRESH : Lt_contract.
      lt_contract[] = LT_DATA[].
      loop at lt_contract into ls_contract.
    *    update  Zcustom  SET ship_to_adress  = ls_contract-new_bp
                                 WHERE  cust_no = ls_contract-custnum
        CLEAR : ls_contract.
      ENDLOOP.
    COMMIT WORK.
    endmethod.

  • Need BAPI/RFC for Updating Category field of CRM_DNO_MONITOR  from SAP R/3.

    Hi SAP GURUS!!
    I need to have a new field category in "Create support message"  of the HELP menu in SAP server. This field values needs tobe updated with that of Category in Solution Manager ( CRM_DNO_MONITOR) .We have found a BADI (SBCOS001 ) where we designed the screen for having the new field. FOr updating the value of this field to sol man, is there any bapi or rfc ..
    Thanks in Advance,
    gopa.

    Hi
    Please check the following points.
    1. Please check the settings that you maintained in the table CRMSUBTAB in ECC. You need to have an entry as follows:
    User: CRM
    Object: VENDOR_MAIN
    U/D : DOWNLOAD
    Object Class: VEND ( & not BUPA for this entry)
    Function Module: PI_BP_VENDOR_MAIN_EXTRACT
    The other entry (for upload) has similar but different values. (Refer to the OSS note 883162.)
    2. Check if you have applied any filter settings in CRM for the adapter object VENDOR_MAIN.
    Regards,
    Srini.

  • Function module for updating vendor:ADRC table

    Hi all,
    Please guide me how to update the database ADRC with using function module.
    I need to use this function module in IDOC inbound.
    Thanks.

    I am not sure about dependent database tables....but definitely the following BAPI will update dependent database tables also...
    BAPI_ADDRESSORG_CHANGE
    Refer the below link for using this BAPI...or search in SCN..
    http://abap.wikiprog.com/wiki/BAPI_ADDRESSORG_CHANGE

  • Display Updated values  in table from server (iphone)

    hello everyone,
    I am having problem while displaying updated data in a table. I m getting data from a server and then trying to displaying it in a table view. but data in table only update after scroll.
    I also tried to call the method [myTableView reloadData] inside main thread. but that doesnt solve to problem too. and my GUI doesnt work when I does that.
    Can anyone solve my prob.
    Thanx in advance.

    Hi..Friends..finally i got the solution for this problem, we have to use performselector method to varying the message at run time.if u want any help click this link,http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC /Articles/ocSelectors.html
    Thanku....

  • Need BAPI Name for updation of Subcontracting scheduling line agreement

    Hi All,
            Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
    Note: BAPI_PO_CHANGE is not useful for me.
    Thanks and Regards,
    Atul.

    Hi Muralidhara,
    Can you please give some more details for this BAPI..
    I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
    and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
    with regards,
    Kirti

  • How to use FM VIEW_MAINTENANCE_NO_DIALOG for updating values in views

    Hi all,
    I got a scenario to update the maintainenace view V_T001S based on the user inputs through a program.
    I'm thinking to use this FM  VIEW_MAINTENANCE_NO_DIALOG , but im getting lot of errors.
    Please let me know if you have any other solutions for this scenario.
    Thanks in Advance.
    Best regards,
    Sekhar.
    Resolved.. thanks
    Edited by: Chandrasekhar Raju on Mar 29, 2011 6:55 AM

    Hi,
    you could use Dynamic SQL /Execute immediate to run DDL from a stored procedure.
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm
    Could you please tell why do you want to create a materialized view in stored procedure ?
    How frequently you will runt this procedure . It would is better to create a MV once and use it.
    thanks

  • Do I need to wait for update?

    A friend of mine gave me this iPad 2 long time ago and it is a iOS 4. I barely use the iPad. So today I wanted to install games such as pvz2 but it said it need iOS 5 or more. When I went to my MacBook to update it. And I click "check for updates" all it say is "This model is iOS 4" I kept on clicking it but when I read the word below it. It say iTunes will check for updates in 12/12/2013 so I did in the next day but it also say the same thing as previous day and it say iTunes will check for updates in 19/12/2013. And the problem is should I wait?

    this is what it say

  • Need a solution for integration BPM and UCM 11.1.1.4?

    Hi all,
    Currently, I am using BPM & SOA 11.1.1.4.
    Could somebody advise me a solution for integration BPM and UCM ?
    I heard somebody said that need to wait to BPM 11G patch set 5 (11.1.1.6) version, which have basic BPM and UCM integration and haven't to using external API like RIDC or CIS.
    Thanks & Regards.
    Ming Nguyen.

    Do not use prebuilt binaries, but compile the package from source with the current libudev.
    sha256sums=(SKIP)
    source=("$pkgname::git+https://github.com/rogerwang/node-webkit.git#tag=nw-v$pkgver")
    to build it in the PKGBUILD, use nw-gyp i guess.
    Last edited by progandy (2013-06-21 22:54:36)

  • Need a solution for my problem. My stuff seems to be gone.

    Hi. 
    I have an annoying problem which I solution for. When I started my laptop and logged in on my account, (there are two, my account's the administrator) everything on my desktop seemed to be deleted. But when i looked in C:/ it was still there, all the foto's
    music and stuff. Before the problem, i had a background for my desktop and many shortcuts. Now i dont have any shortcut and when i go to library's, it says that the folder is empty. But when i go to -DELL is my account- C:/Users/DELL/pictures, every picture
    seems to be there. What's also weird is that when i log on to the other account which isn't an administrator and which i don't use that often, nothing has changed. 
    PS: I have a windows 7 laptop
    Please help
    (sorry for bad english)

    Wahh Wahh stfu I never asked anyone to my work for
    me. All i asked for is help. If you read your first post and honestly consider it to be a reasonable request for help, rather than a lazy twat whining to have his work done for him, then you need even more help in basic communication than you do in computer science.
    Apparently the people
    that fill this board are just too good to help or put
    anyone in the right direction to help.And yet, thousands of people get lots of very good help here. So is it just random whim, or do the people who get help do something different than knobgobblers like you?

  • Re: FM for updating the ADR6 table

    Hi,
    In ME21N, I add an email to the vendor PO.
    Can someone tell me where can I find the FM that updates this into table ADR6?
    Thanks
    Bye

    Hello,
    Please use the below function Module for updating ADR6.
      1. ADDR_SAVE_INTERN
    Reward points if helps.
    Thanks,
    Krishnakumar

Maybe you are looking for

  • JTextField not gaining focus on initialization of Applet

    I originally tried posting this in the Applets forum but was unable to get a response, so I am re-posting here in hopes of finding an answer. I have a simple JApplet with a JFrame, a JTextField added to the JFrame, and a WindowListener added to the J

  • Having trouble bringing up built in keyboard

    when i press command k it turns the keyboard on and off in the window drop down menu instead of bringing it up in the little window what should i do to bring up the keyboard? p.s im 12 and my uncle suggests i should ask here so please help me

  • Saving query result to a file

    Hi, I have a sql*developer version 1.5 but i am getting a problem while saving query result to a file. When i click on "script output "-> "file icon" nothing is showing. Can anyboby guide me whether its a bug or some other settings are required. I ha

  • I cannot open Safari on my new MacPro

    I just bought the latest MacPro. I transfered everything from my old Mac to my new Mac. The only app that will not work is Safari. What can I do to get it to relaunch? Thanks

  • OS won't reinstall

    I was installing Windows XP through Boot Camp. I noticed that Windows XP was formatting my entire harddrive, not just the 5 Gb partition allotted to it so I shut down the computer. Now my macbook pro won't boot and holding C with the install CD in th