我这样测试没问题,肯定不是下面这段代码的问题。
Dim cmd As new SQLCommandcmd.CommandText = "select a.*, b.第二列 as 金额1 from {表A} as a left join {表B} as b on a.第一列 = b.第一列"Dim dt As DataTable = cmd.ExecuteReadermsgbox(dt.compute("sum(金额1)"))