如我的表列为如下:
userid username userpassword userfilename
0001 abc skjwoejifew c:\xml\abc.xml
0002 bced dkjkwjkf c:\xml\bced.xml
0003 abcd sfeoejifew c:\xml\abcd.xml
0004 abce fffwoejifew c:\xml\abce.xml我想按以下格式列印怎么写代码?username userfilename username userfilename
abc c:\xml\abc.xml bced c:\xml\bced.xml
abcd c:\xml\abcd.xml abce c:\xml\abce.xml
userid username userpassword userfilename
0001 abc skjwoejifew c:\xml\abc.xml
0002 bced dkjkwjkf c:\xml\bced.xml
0003 abcd sfeoejifew c:\xml\abcd.xml
0004 abce fffwoejifew c:\xml\abce.xml我想按以下格式列印怎么写代码?username userfilename username userfilename
abc c:\xml\abc.xml bced c:\xml\bced.xml
abcd c:\xml\abcd.xml abce c:\xml\abce.xml
解决方案 »
- 求思路,方法,谢谢,在线等
- App_Code文件夹下的类里面的static方法若不操作static变量还需lock么?
- 高分求asp.net下载系统一套,最好是后台有分角色管理的,对应不同板块可设置不同权限(上传和下载)
- c# 用鼠标拖动母板页改变宽度
- 关于c#中request.querystring问题
- 菜鸟的几个问题,请大家帮忙?
- 如何动态生成GridView的PagerTemplate
- 大家谈谈接口得使用、接口得优缺点等!!
- Convert.FromBase64String 处理不是4的倍数的string的问题(哪位大侠知道)
- AssemblyInfo.vb和Web.config能做什么。请指教。这些有什么功能。
- 怎样序列化用户控件(vs2005中)?--在线等待
- RowUpdating事件该怎么写??十万分的急~~~~~~~~~
如果是sql就不会太难
2在里面建张临时表,并且建的表字段结构为 username userfilename username userfilename
3用游标读取User表,每次循环取两条记录的值(循环要控制好,外层循环控制记录总数,内层循环游标两次,递增下去,然后insert 到TempTable
4最后返回临时表就得到你要的数据了