gpt4 book ai didi

sql - 从 Postgresql 中选择撇号

转载 作者:行者123 更新时间:2023-11-29 12:46:42 25 4
gpt4 key购买 nike

<分区>

我在 postgresql 9.1 版中有一个带有两个撇号的行单元格值,如下所示:

col1  col2
'' 1
'' 2
aa 3
aa 4

现在我想从 col1 中选择那些带有 '' 的行

我试过:

select * from table1 where col1 like '''''%'

但什么都不返回。

select * from table1 where col1 = ''''''

但什么都不返回。

select * from table1 where col1 = $$''''$$

但也不返回任何内容。

select * from table1 where col1 like $$''%$$

但也不返回任何内容。

有人可以帮忙吗?谢谢

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