Quantcast
Channel: Bring text before the second special character in SQL - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Alexander Klimenko for Bring text before the second special...

Another option using regexp:SELECT REGEXP_SUBSTR(<YOUR_COLUMN>, '^[^:]*:[^:]*') FROM <YOUR_TABLE>;

View Article



Answer by Koushik Roy for Bring text before the second special character in SQL

One way is to use split_part() to split string based on : and then concat them again.Or second way is to use substring with regexp_instr() like below-select split_part('ss pullover...

View Article

Bring text before the second special character in SQL

I have a column that looks like this:ss pullover jaq:rwbwht:40 ribbed cttn 5608:navy:10.5 shorts:black:xls:pigment wash mushroom:l t tote bag:mushroom:1sizeI need to extract the string before the...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>