gpt4 book ai didi

php - 过滤不等于空条目

转载 作者:搜寻专家 更新时间:2023-10-31 20:41:57 25 4
gpt4 key购买 nike

我有一列,它存储带有 null permitted 的数字。

numbers 列中的示例条目:

numbers :
123
null
null
546
null

如何提取 SQL 中的非空条目?

最佳答案

使用IS运算符

select numbers 
from your_table
where numbers is not null and numbers <> ''

关于php - 过滤不等于空条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20004883/

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