首先,如果表中某一个字段是null,现在需要查出表中该字段非null的记录数: select count(1) from table_name where column_name is not null;