有一个类class person{
int age;//年龄
String district//地区
int count;//人数统计值,比如北京地区25岁的有多少人。
}对应数据库表create table t_a{
id int not null primary key;
t_age int;对应age
t_district; verchar对应district字段
}有如下sql,统计某一age和district的下的人数,select t_age,t_district,count(*) from t_a group by t_age,t_district,请问ibatis的sqlmap怎么写?
就是count怎么对应
int age;//年龄
String district//地区
int count;//人数统计值,比如北京地区25岁的有多少人。
}对应数据库表create table t_a{
id int not null primary key;
t_age int;对应age
t_district; verchar对应district字段
}有如下sql,统计某一age和district的下的人数,select t_age,t_district,count(*) from t_a group by t_age,t_district,请问ibatis的sqlmap怎么写?
就是count怎么对应
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货