Author: Zhu Jincan
Source: clever101's column
1. Create a slite database table, the code is as follows:
create table download(downloadDate date,status Integer)
The Download table is created, including two fields:
downloadDate indicates the download date, the type is date, and status indicates the download status.
2. Now perform related queries on the download date, the code is as follows:
SELECT * FROM download WHERE downloadDate='2023-01-01’; # 查询2023年1月1日的数据下载状态
SELECT * FROM download WHERE downloadDate>= '2023-02-01’ and downloadDate<= '2023-02-15’; # 查询2023年2月1日到2023年2月15日的数据下载状态