1、统计表a中数据的总条数: select count(id) from a 2、统计表a中“状态”字段为“1”的条数: select count(id) from a where fk_statusid=1