【发布时间】:2018-03-02 02:12:06
【问题描述】:
如何在 Presto 中转义 '(单引号)?
这是我尝试使用它的地方
select count(*) as count
from uploads
where title not in ('Driver's License')
我尝试了通常的转义:'Driver\'s License'、"Driver's License"、E'Driver\'s License',但似乎没有任何效果。 Presto 的文档含糊不清。有人知道吗?
【问题讨论】:
-
在(标准)SQL 中为
'Driver''s License' -
成功了!谢谢!