[英]Get total number of filled row in table in SQLite
My Question is Similar to MySQL, count the number of "filled" fields in a table 我的问题类似于MySQL,计算表中“已填充”字段的数量
But i can not got my proper solution. 但是我找不到合适的解决方案。 How is it possible in Sqlite?
在Sqlite中怎么可能?
I Know about get using for loop. 我知道使用for循环。 but i want to get by query.
但我想查询。
Please help me on this issue. 请帮我解决这个问题。
Thanks in Advance. 提前致谢。
A query like this will work: 这样的查询将起作用:
SELECT COUNT(*) from raw where rawData <> '' AND rawData IS NOT NULL
This assumes there is a table called "raw" and the column you're checking against is "rawData" 假设存在一个名为“ raw”的表,要检查的列为“ rawData”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.