应该好用啊,这是SQL的功能啊,我以前用过没问题

解决方案 »

  1.   

    string cmdstr="select sum(eqty),sum(emoney)/sum(eqty),emoney from expectStock where einvcode='"+inv+"' and ewhcode='"+whcode+"' group by einvcode";这样呢?
    你的sql????
    ado.net里面肯定支持这样的sql撒!
      

  2.   

    string cmdstr="select sum(eqty),sum(emoney)/sum(eqty),emoney from expectStock where einvcode='"+inv+"' and ewhcode='"+whcode+"' group by einvcode";这样呢?
    你的sql????
    ado.net里面肯定支持这样的sql撒!