标签: ios core-data
我想在iOS核心数据中按日期分组。如何将group by DATE(datecolumn)之类的查询作为SQLite。
group by DATE(datecolumn)
在this document中,似乎不支持DATE()方法。
所以,[request setPropertiesToGroupBy:[NSArray arrayWithObject:@"date.datecolumn"]];没有用。
[request setPropertiesToGroupBy:[NSArray arrayWithObject:@"date.datecolumn"]];