Redshift - 使用撇号过滤文本

问题描述 投票:0回答:1

我试图看看我们如何查询具有撇号的文本。

例如

select * from table where name = 'People's'

我试图查询过滤掉具有name = People's的行

amazon-redshift apostrophe
1个回答
1
投票

在Redshift中,只需连续使用2次

所以,在你的例子中使用

select * from table where name = 'People''s'
© www.soinside.com 2019 - 2024. All rights reserved.