1. 按组查询
SELECT strftime('%Y-%m-%d', datetime(spendOrIncomeDate, 'unixepoch')) AS day, *
FROM RevenueAndExpenditureRecordsTB
GROUP BY day;
image.png
SELECT strftime('%Y-%m-%d', datetime(spendOrIncomeDate, 'unixepoch')) AS day, *
FROM RevenueAndExpenditureRecordsTB
GROUP BY day;
image.png
本文标题:iOS SQL查询
本文链接:https://www.haomeiwen.com/subject/mcyokdtx.html
网友评论