gpt4 book ai didi

sql - 如何在 Presto 中转义单引号?

转载 作者:行者123 更新时间:2023-12-03 22:16:22 27 4
gpt4 key购买 nike

我怎样才能逃脱 ' (单引号)在 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 的文档含糊不清。有人知道吗?

最佳答案

答案,由 a_horse_with_no_name 提供, 是使用另一个 ' .
'Driver''s License'

关于sql - 如何在 Presto 中转义单引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46331827/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com