Php 筛选不等于空条目
我有一个列,它存储允许使用Php 筛选不等于空条目,php,sql,Php,Sql,我有一个列,它存储允许使用null的数字 列编号中的示例条目: numbers : 123 null null 546 null 如何提取SQL中的非空项?使用IS运算符 select numbers from your_table where numbers is not null and numbers <> '' 选择数字 从你的桌子上 其中数字不为空且数字为“” 仍会给出其中的所有记录,包括空记录。因此,这些记录不为空。可能是'
null
的数字
列编号中的示例条目:
numbers :
123
null
null
546
null
如何提取SQL中的非空项?使用IS
运算符
select numbers
from your_table
where numbers is not null and numbers <> ''
选择数字
从你的桌子上
其中数字不为空且数字为“”
仍会给出其中的所有记录,包括空记录。因此,这些记录不为空。可能是'