invalid column name 就是说你的列名不正确阿。dim  strSQL as string= "select sum(aa) from b0410101_mcgs where to_char(bb,'mm')=' + ee + "' group by to_char(bb,'mm')"