This blog will help developers looking to split strings in a single query using XML. We generally use a user defined function, which we have used in our database that splits the string based on the delimiter passed. But, when it comes to separate the string in a single query without any help of user defined function we often get panic. I have found a much optimized and shorter way of splitting any string based on the delimiter passed. I will be using the power of XML to do the same.
Let's say for example there is a string 'A,B,C,D,E' and I want to split it based on the delimiter ','. The first step would be to convert that string into XML, replacing the delimiter with some start and end XML tag.
I am an academician, DBA and team leader at Department of Computer Applications. I am Oracle11g Certified Database Professional & Microsoft Certified Professional, earned Microsoft Database Administration and did Ph.D. in area of Big Data and Hadoop. I am IBM certified Academic associate – DB2 Database and applications & RAD Certified Developer. Nowadays working on Data Science and Mobile Application Development.
This channel will helps to learners who are enthusiastic for coding.
It also helps to the teachers as well as learners who want to learn Android, Java, Oracle, C, MongoDB, Flutter, SQL Server etc.
"For the Learners, by the Learners & of the Learners.
Thank You
Privacy Policy
-
Privacy Policy Effective date: March 08, 2019
PLSQL ("us", "we", or "our") operates the mobile application (the
"Service").
This page informs you of our po...
2 comments:
Good Start Parag..!
Gr8 Job.
Keep growing
Thank u so much dear
Post a Comment