Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL query to delete XMLTAG element from CLOB

6bf021a3-b7bf-4626-be9f-8eb1cf19ca46Mar 3 2015 — edited Mar 4 2015

CREATE TABLE STREAM

  ( PAYLOAD CLOB

  );

INSERT

INTO stream VALUES

  ('<MC><RECORD><CODE>4995908</CODE><TITLE>Adrenocortical </TITLE><ROOT_CODE>380146</ROOT_CODE><MOD>229</MOD></RECORD><RECORD><CODE>69354563</CODE><TITLE> right</TITLE><ROOT_CODE>380146</ROOT_CODE><MOD>230</MOD></RECORD></MC><MT><RECORD><TYPE>LATERALITY</TYPE><TITLES>Laterality</TITLES><MOD><MODIFIER><MCS>69383650</MCS></MODIFIER></MOD></RECORD></MT>');

I WANT TO  DELETE the XMLELEMENTS (<TITLE>Adrenocortical </TITLE> AND <TITLE> RIGHT< /TITLE>)

from the above row, could not convert into XMLTYPE also.

This post has been answered by odie_63 on Mar 3 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2015
Added on Mar 3 2015
5 comments
711 views