首页上一页 1 下一页尾页 3 条记录 1/1页
group by的应用问题
发表在ASP.NET图书答疑
2010-10-08
是否精华
是
否
版块置顶:
是
否
OleDbDataAdapter da = new OleDbDataAdapter("select fwry,sum(xfje) as xfje,(sum(xfje)/'" + sum + "')*100 as zb,'"+sum+"' as bd from xfjl where nian='" + this.GridView1.Rows[e.NewEditIndex].Cells[0].Text + "'and yue='" + this.GridView1.Rows[e.NewEditIndex].Cells[1].Text + "'group by fwry ", Conn);在这里有个问题在xfje这一列里面小数点一长串怎样保留2为有效数字,各位大侠帮忙看看