关于datatable.Columns.Add("IntQyt", typeof(Int32), "Convert(bgoodsqty,'System.Int32')")

wyfwyf2000 2003-05-16 04:00:16
如何合成一个语句
ds.Tables[0].Columns.Add("IntQyt", typeof(Int32), "Convert(bgoodsqty,'System.Int32')");
ds.Tables[0].Columns.Add("TotalQty", typeof(Int32), "Sum(IntQyt)");
...全文
116 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
tuzi98 2003-05-19
  • 打赏
  • 举报
回复
好好看看帮助,有完整例子
ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemDataDataColumnClassExpressionTopic.htm
Knight94 2003-05-19
  • 打赏
  • 举报
回复
看这样如何
ds.Tables[0].Columns.Add("TotalQty", typeof(Int32), "Convert(Sum(bgoodsqty),'System.Int32')");
wyfwyf2000 2003-05-19
  • 打赏
  • 举报
回复
各位帮忙,分两次写不出错,
我这样写出错了Sum(Convert(bgoodsqty,'System.Int32'))
wyfwyf2000 2003-05-16
  • 打赏
  • 举报
回复
up
wyfwyf2000 2003-05-16
  • 打赏
  • 举报
回复
up

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧