请教高手一个数据表中数据显示的问题(web)
有一个学费表
name term money
aaa 1 100
aaa 2 200
aaa 3 300
bbb 2 200
怎样把这个表在table控件上以这种形式显示!
姓名 学期1 学期2 学期3 总计
aaa 100 200 300 600
bbb 200 200
请教省服务器内存开销的方法!
问题点数:100、回复次数:4Top
1 楼copico(北北)回复于 2006-05-01 21:32:01 得分 100
select 姓名,term1 ,term2,term3 where (select term as term1 form table ) and (select term as term2 form table) and (select term as term3 form table) distanct by 姓名Top
2 楼clf52099()回复于 2006-05-01 21:52:32 得分 0
后面那个总计呢Top
3 楼WTaoboy(SnowMans)回复于 2006-05-01 22:34:18 得分 0
接着 copico(苦涩(一路向北)) 的方法
将term1,term2,term3 加在一起,启个别名就可以了
在普能不过的SQL语句了Top
4 楼clf52099()回复于 2006-05-02 09:33:44 得分 0
楼主和我要做的东西差不多 可以加我一起讨论学习么 Q172292235Top




