这么才能把这样的字段
A:1,2,3,4.......
变成
 AA
 1
 2
 3
 4
 .
 .
 .
用SQL有没有办法呀?注:Database is Access2000(SQL Server7.0)

解决方案 »

  1.   

    要么你用存储过程写SQL语句来分开要么统计出来后用交叉报表来旋转
      

  2.   

    ado打开表,然后每个字段对应的就是adoquery.Fields.Fields[i].FieldName
    由于我不知道楼主到底下面要做什么事,只能写到这里。
      

  3.   

    列转行的问题,需要写过程。
    这个问题提的很多了,如果数目确认可以使用sql完成,但你现在只能使用过程。
      

  4.   

    Select 'AA' as FieldName from Tablename
    union all
    select 1 as fieldname from tablename
    union all
    select 2 as fieldname from tablename
    ......
    union all
    select n as fieldname from tablename