Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table T (url varchar(255)); insert into T values ('<a href="http://server/tfs/DefaultCollection/1C/_workitems/edit/55001" class="link" style="height: 100%; width: 100%;" target="_top">По заявке создана User Story 55001</a>'); select substring( url, patindex('%edit/%', url) + 5, patindex('%class=%', url) - patindex('%edit/%', url) - 7 ) from T; --Задача: --Создать столбец с числом после /edit: --55001

Stuck with a problem? Got Error? Ask AI support!

Copy Clear