I am playing with some encrypted data and I need to get the odd numbered characters from a string and populate into a column:
abcedfgh
to
acdg
Is it really possible to do it in SQL? I tried googling on this but couldn't find any search results.
SELECT REGEXP_REPLACE(mycolumn, '(.).', '\1')
FROM mytable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With