2012年6月1日 - 6, GROUP BY orderid) M --這個M一定要加,不知道為啥 ... 你的SQL String後面 ORDER by M.OrderID.
www.dotblogs.com.tw