UTILITIES NEWBIE

SQL standard string literal escaper

Inspect the standard single-quoted SQL literal representation of a text value.

Source

0 characters

Import a local UTF-8 file
Print and optional local draft

An explicit save stores only source text as plaintext in this browser on this device. Do not save secrets or use a shared device. Nothing is saved or loaded automatically.

No draft has been loaded.

Output

Worked input and output

Input

O'Reilly

Output

'O''Reilly'

The apostrophe inside O’Reilly is doubled, and the entire value is enclosed in single quotes. This does not quote table/column names or make string-built SQL safe.