关于SQL表的行列转换
DateStatus2012-05-09win2012-05-09lose2012-05-09lose2012-05-09lose2012-05-10win2012-05...
Date Status
2012-05-09 win
2012-05-09 lose
2012-05-09 lose
2012-05-09 lose
2012-05-10 win
2012-05-10 lose
2012-05-10 lose
如果要生成下列结果,该如何写SQL语句?
Date win lose
2012-05-09 2 2
2012-05-10 1 2 展开
2012-05-09 win
2012-05-09 lose
2012-05-09 lose
2012-05-09 lose
2012-05-10 win
2012-05-10 lose
2012-05-10 lose
如果要生成下列结果,该如何写SQL语句?
Date win lose
2012-05-09 2 2
2012-05-10 1 2 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询