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

Thread: Sql query

Threaded View

  1. #10
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    159
    Just for fun, try this (requires 9i, tested in 9.2.0.1):
    Code:
    SELECT str, EXTRACTVALUE(xt.column_value,'e') AS name
    FROM   t
         , TABLE(XMLSEQUENCE
           ( EXTRACT
             ( XMLTYPE('<coll><e>' ||
                       REPLACE(t.str,',','</e><e>') ||
                       '</e></coll>')
    	 , '/coll/e') )) xt;
    Last edited by WilliamR; 07-17-2005 at 05:48 PM.

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