如何读取compute by子句的输出 [英] How to read the out put of compute by clause

查看:74
本文介绍了如何读取compute by子句的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PkgContent     Total_Freight
  ASDFAF           3
  ASDFASF          3
  sssss            2
  ssss             7
  asfasdasdf       5
  afdssdf          5
  
  sum
  ---------------- 
  25 


这是查询的结果:
=======================


this is the out put of Query:
=========================

SELECT  Content1, Total1
FROM       xyz
ORDER BY IDx DESC
COMPUTE SUM(Total1)


=======================

问题:我无法通过ado.net读取总和为"25"的值

救救我....



在此先感谢...


=========================

Problem: I am not able to Read the value of Sum that is ''25'' through ado.net

Help me....



thanks in advance...

推荐答案

您将在datatable集合的第二个表中找到数据

You will find the data in In the Second table of the datatable collection

ds.Tables(1).Rows(0)(0)


这篇关于如何读取compute by子句的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆