0
我有日期類型列(MySQL的):獲取不同的年份和月份亞音速
SELECT invdate FROM invoices;
invdate
-------
2009-08-22
2009-07-12
2009-08-23
-------
,我希望得到的月和年這樣的:
SELECT DISTINCT MONTH(invdate) AS invmonth, YEAR(invdate) AS invyear FROM invoices;
如何在C#中使用亞音速(SimpleRepository)?
TIA