我有這樣的查詢: SELECT COUNT(*) AS amount
FROM daily_individual_tracking
WHERE sales = 'YES'
AND daily_individual_tracking_date BETWEEN '2010-01-01' AND '2010-03-31'
我從一個日期範圍內選擇。有沒有辦法在日期範圍內獲得總天數?
鑑於這些表 table Channel
--------------
ChannelID int IDENTITY
<other irrelevant stuff>
table Program
--------------
ProgramID int IDENTITY
ChannelID int
AiringDate datetime
<other irrelevant stu
新編譯的SQLite顯示有關日期/時間函數的奇怪行爲。你有什麼想法發生了什麼以及如何解決它? $ date
Mon Mar 8 14:52:11 CET 2010
$ ./sqlite3 TEST0
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements
我的一些領域對象包含日期範圍爲一對的開始和結束日期屬性: public class Period {
public DateTime EffectiveDate { get; set; }
public DateTime ThroughDate { get; set; }
}
public class Timeline {
public DateTime Sta