易截截图软件、单文件、免安装、纯绿色、仅160KB

sql语句怎么写

表中字段为字符型,原表为:
bj  xh        lx
11  0112001    13
12  0111001    12
11  0111002    25
31  0113009    457
16  0112015    689
11  0115301    89
12  0112011    9
11  0152111    26

要求统计结果如下:
bj  lx  lx1  lx2  lx3  lx4  lx5  lx6  lx7  lx8  lx9
11  4    1    2                                  1
12  2    1                                              1
16  1                                  1
31  1                      1

怎么变形了:
要求统计结果如下:
bj  lx  lx1  lx2  lx3  lx4  lx5  lx6  lx7  lx8  lx9
11  4    1    2                            1
12  2  &n


相关问答:

jsp链接sql2000的疑问?



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

sql 函数问题 - MS-SQL Server / 应用实例

sql我想得到一字符串为:
sldkf|||sdeww
erkv|||rltdk
jemcl|||ligf
就是|||后面的字符有什么函数能得到吗?是在sql语句写的,不是在页面写的,那位高手来指教下,新手,谢谢
晕今天不是写了么

select parsen ......

sql like 查询 - MS-SQL Server / 疑难问题


一、7|3|1,8|6|1,3|1|1,16|1|1,5|7|1,9|7|1
二、6|3|1,7|3|1,8|6|1,2|1|1,3|1|1,16|1|1,4|7|1,5|7|1,9|7|1,10|7|1,11|4|1,12|4|1,13|4|1,14|5|1,15|5|1,17|0|1
怎样查询 一 在 二 里面并输出记录集。
SQL code: ......

ASP链接SQL的简单登陆界面 - .NET技术 / ASP.NET

protected void btnLogin_Click(object sender, EventArgs e)
  {
  SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号