1. 按组查询
SELECT strftime('%Y-%m-%d', datetime(spendOrIncomeDate, 'unixepoch')) AS day, *
FROM RevenueAndExpenditureRecordsTB
GROUP BY day;
SELECT strftime('%Y-%m-%d', datetime(spendOrIncomeDate, 'unixepoch')) AS day, *
FROM RevenueAndExpenditureRecordsTB
GROUP BY day;