1.统计数量count() select count(*) from base_article where cid=44; 2.查询字段类型datetime的 年/月/日/时/分/秒(date_format(字段,‘时间’)) select date_format(pubtime,'%Y-%m-%d %H:%i:%s') from base_article where id=58;