Skip to content

Files

Latest commit

78bcf76 · Nov 20, 2023

History

History
15 lines (9 loc) · 371 Bytes

escape-single-quote.md

File metadata and controls

15 lines (9 loc) · 371 Bytes

Escaping Single Quotes

According to the SQL standard escaping single quotes should be done with another single quote.

INSERT INTO mytable (name) VALUES ('Shaquille O''Neal')

Note: See the two single quotes in O''Neal


Refs