You could play with the INSTR function, which returns the position of a specified substring within a string.
Usage:
instr(<string>,<substring>,<starting_position>,<occurrence>)
You can use this function to see the value of a specific element in the PVC_Value, for example, to see the 7th element, the following select should do the trick:
<pre>select substr(pvc_value,instr(pvc_value,';',1,6)+1,instr(pvc_value,';',1,7)-1-instr(pvc_value,';',1,6))
from your_table;</pre>
and to see the 10th elment:
<pre>select substr(pvc_value,instr(pvc_value,';',1,9)+1,instr(pvc_value,';',1,10)-1-instr(pvc_value,';',1,9))
from your_table;</pre>
Note that we are searching for the semicolon, so it should work even when some elements have no data.
You could do something similar to update the pvc_field, for example, to update the 7th element:
<pre>update your_table
set pvc_value = substr(pvc_value,1,instr(pvc_value,';',1,6))||'&new_value'||substr(pvc_value,instr(pvc_value,';',1,7),length(pvc_value));</pre>
If you are going to update the element with some fixed value, you can replace the '&new_value' with the fixed string of your choice. If you leave it as it is, when you run the statement, you will be prompted for the new value.
I'm not sure how you need to update the data, but I hope this at least gives you a light.
Regards,
Thanks, this is exactly what I needed. I forgot the Instr can locate an instatance of a char.