Skip to tool

SQL Partition at first separator Online

Split into (before, separator, after) at first separator.

The output updates as you type. The tool processes input in your browser.

Worked example

The three values are the text before the separator, the separator, and the text after it. If the separator is absent, the original text is first. Use PostgreSQL’s function reference to adapt the input to SQL syntax.

Separator
"/"
Sample input
manuals.plus/docs
Sample output
["manuals.plus","/","docs"]

Using this operation in SQL

The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.

SQL reference