Hi ,
One my column in database stores a large xml file which I have to extract
I tried the below query
select to_char(SUBSTR(cdata,0,4000)) from table1where xxx_ID= xxx
I get only 4000 characters obviously. ow can I get the whole data.
Thanks in advance!
Open in new window
The last length parameter is optional. If you skip that then you will all the data from the start position you have given.
You can read more about SUBSTR function from - https://www.techonthenet.com/oracle/functions/substr.php
Also if you need full data you DO NOT need substr. You need substr if you want to get some substring from a string.
Open in new window