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
/* with tb as (select 'test' as c1, 'tert' as c2 from dual) select regexp_substr(c1, '[^,]+', 1, rownum) SPLIT from tb connect by level <= length (regexp_replace(c1, '[^,]+')) + 1) select regexp_substr('SMITHALLENWARDJONES','[^,]+', 1, level) as split from dual connect by regexp_substr('SMITHALLENWARDJONES', '[^,]+', 1, level) is not null; */ SELECT REGEXP_SUBSTR('An example sentence.', '.*', 1, level) AS parts FROM dual CONNECT BY REGEXP_SUBSTR('An example sentence.', '.*', 1, level) IS NOT NULL;

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

Copy Clear