SQL查询数据库中符合条件的记录的总数
1. select count(*) from table; //统计元组个数2. select count(列名) from table; //统计一列中值的个数3. select count(*) from table where 字段 = ""; //符合该条件的记录总数4. sql_count = "select count(*) from article a where 1=1 ";//这条语句中a就代表article 这张表,后面可以写a.字段...