文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>sql交叉查询

sql交叉查询

时间:2008-04-16  来源:gslsok

sql: select gwlb, count(case when (year(getdate())-year(rybirthday)) between 20 and 30 then rygh end) as '20-30', count(case when (year(getdate())-year(rybirthday)) between 30 and 40 then rygh end) as '30-40', count(case when (year(getdate())-year(rybirthday)) between 40 and 50 then rygh end) as '40-50', count(case when (year(getdate())-year(rybirthday)) between 50 and 60 then rygh end) as '50-60', count(case when (year(getdate())-year(rybirthday)) between 60 and 70 then rygh end) as '60-70' from t_ry group by gwlb
相关阅读 更多 +
排行榜 更多 +
找茬脑洞的世界安卓版

找茬脑洞的世界安卓版

休闲益智 下载
滑板英雄跑酷2手游

滑板英雄跑酷2手游

休闲益智 下载
披萨对对看下载

披萨对对看下载

休闲益智 下载