发布网友 发布时间:2022-04-10 07:02
共2个回答
懂视网 时间:2022-04-10 11:23
"select strftime(‘%Y-%m-%d‘,"+DBConfig.RUNNING_LOG_DATE+") as "+FORMAT_DATE+" from " +DBConfig.TABLE_RUNNING_LOG+" group by strftime(‘%Y-%m-%d‘,"+DBConfig.RUNNING_LOG_DATE+") order by "+FORMAT_DATE+" desc";二.根据日期查询详细内容
String paramString = "select * from "+DBConfig.TABLE_RUNNING_LOG+" where strftime(‘%Y-%m-%d‘,"+DBConfig.RUNNING_LOG_DATE+") = ‘"+dateStr+"‘ order by id desc";
sqlite-按日期分组,根据日期查询详细内容
标签:bsp rom running blog run format sqli strftime order
热心网友 时间:2022-04-10 08:31
如果是sqlserver数据库的话,你的查询不能实现的,因为sqlserver的时间戳与日期无关,只是个计数器。