I have a table with varchar(300)
(it containts some URLs) column, and I need to extract some value of this column to a new integer
column.
Source column:
https://my_domain.com/?item1=value1&item2=value2&searching_field=int_value&item4=value4
I need to find string searching_field=int_value
and insert int_value
to a table.
UPD. I found a good tool REGEXP_SUBSTRING
and I'm trying to use like below:
SELECT REGEXP_SUBSTR(col_name, 'searching_field=[0-9]+', charindex('searching_field=', col)) as col from my_table