How do I escape a single quote in Presto?
Use the CHR(39)
character function anywhere you need a single quote. Use with either the concat
function or using double pipe ||
:
select count(*) as count from uploadswhere title not in (concat('Driver', CHR(39), 's License'))
or
select count(*) as count from uploadswhere title not in ('Driver' || CHR(39) || 's License')