I have a field that contains data like below:
124.97#54.03#5#16
its number which separated by ‘#’. I want to sum these number, but not get the result yet.
First I use this query to replace ‘#’ with ‘+’ sign.
select replace(myfieldname,'#','+') from mytable
I imagine if there’s a function ‘eval’ like in PHP, it should be done.
Any ideas? Thanks in advance.
Note: It’s ok if you can help me to separate that single column to multiple column in result, actually that’s better.
>
Note: It’s ok if you can help me to separate that single column to multiple column in result, actually that’s better.
Try this query –
Another variant: