MyBatis 目录(?)[-] mybatis实战教程mybatis in action之一开发环境搭建 mybatis实战教程mybatis in action之二以接口的方式编程 mybatis实战教程mybatis in action之三实现数据的增删改查 mybatis实战教程mybatis in action之四实现关联数据的查询 mybatis实战教程mybatis in action之五与spring3集成附源码 mybatis实战教程mybatis in action之六与S
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.字段来代表该表的字段,whe