如何在ASP中显示 sql compute 的结果
来源:百度知道 编辑:UC知道 时间:2024/09/22 01:43:29
在ASP中,如果在sql查询语句中用了compute,如何显示出来?
例如SQL语句如下:
select p,je from table1 compute sum(je)
其中p是nvarchar,je 是 numeric,用ASP执行这个SQL可以显示 table1时的数据,但是compute sum(je)得的结果却没法显示出来。
例如SQL语句如下:
select p,je from table1 compute sum(je)
其中p是nvarchar,je 是 numeric,用ASP执行这个SQL可以显示 table1时的数据,但是compute sum(je)得的结果却没法显示出来。
参考
http://topic.csdn.net/t/20030612/10/1906011.html
select p,je from table1 compute sum(je)
select p,je from table1 compute sum(je) by p
或者
select p,je from table1
Union all
Select '',sum(je) from table1