有一个下表:如何将单个字段转换为计算星期的SQLite日期?
CREATE TABLE `foo`(
`year` INT NOT NULL,
`month` INT NOT NULL,
`day` INT NOT NULL,
`hour` INT NOT NULL,
`minute` INT NOT NULL,
`value` INT NOT NULL,
PRIMARY KEY(`year`, `month`, `day`, `hour`, `minute`)
);
如何选择所有的SQLite周一的记录?
我会与平日增加一列。 –
检查这个问题:http://stackoverflow.com/questions/4319302/sqlite-return-as-day-of-week – fableal