I actually need to get the values between <Att_Desc> and </Att_Desc> in DB2, we are using DB2 9 version.
I tried using substring and locate function with no success.
select
substr(columnstring, LOCATE(’<Att_Desc>’, columnstring)+8, ? )
from table
In the above statement I was able to find the location from where i have to start, but I don’t know exact substring length which I need. substring length is varying between tags.
I have a string that contains, amongst other things, the values “X1” and “X2”. I need to find the text value between these two, which could start and end at any position in the overall string. This is VB code, so you’ll have to find the db2 equivalent, but you get the idea.