SELECT
CAST(date AS DATE),
SUM(amt) AS totamt
FROM TableName
GROUP BY CAST(date AS DATE)
当我使用简单查询时,这工作正常,但是当通过 gridview 绑定数据时,这不起作用并引发错误:
DataBinding:“System.Data.Common.DataRecordInternal”不包含名为“ExpenseDate”的属性。
SELECT
CAST(date AS DATE),
SUM(amt) AS totamt
FROM TableName
GROUP BY CAST(date AS DATE)
当我使用简单查询时,这工作正常,但是当通过 gridview 绑定数据时,这不起作用并引发错误:
DataBinding:“System.Data.Common.DataRecordInternal”不包含名为“ExpenseDate”的属性。