gpt4 book ai didi

postgresql - 字段显示为 null 或空字符串,但我无法选择它

转载 作者:行者123 更新时间:2023-11-29 14:02:26 28 4
gpt4 key购买 nike

select *
from ss.mailer_data
where
id = 249122
and address_3 like'%%'

不会命中 address_3。我尝试将最后一行更改为

and address_3 is null

and address_3 = ''

and address_3 = ' '

我尝试使用 char_length、ascii 函数,但对于该字段值,它们什么也不返回。有人有什么想法吗?

最佳答案

也可能是 id = 249122 对于该组合​​不正确。当你这样做时会发生什么

select *
from ss.mailer_data
where address_3 is null

select *
from ss.mailer_data
where address_3 = ''

关于postgresql - 字段显示为 null 或空字符串,但我无法选择它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3479477/

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