当前位置:网站首页>MySQL time processing
MySQL time processing
2022-07-06 04:54:00 【Data analysis of financial Xiaobai】
SELECT DAY(date) as day_id,COUNT(*) FROM question_practice_detail
WHERE MONTH(date)=8 and YEAR(date)=2021
GROUP BY day_id
# insert data
INSERT INTO exam_record(uid, exam_id, start_time, submit_time,score)
values
(1001,9001,'2021-09-01 22:11:12','2021-09-01 23:01:12',90),
(1002,9002,'2021-09-04 07:01:02',null,null);
# insert data
INSERT INTO exam_record_before_2021
SELECT NULL,uid, exam_id, start_time, submit_time, score
FROM exam_record
WHERE submit_time < '2021-01-01 00:00:00';
replace into examination_info
(id,exam_id,tag,difficulty,duration,release_time)
values(null,9003,'SQL','hard',90,'2021-01-01 00:00:00')
边栏推荐
- [buuctf.reverse] 159_[watevrCTF 2019]Watshell
- A blog to achieve embedded entry
- Orm-f & Q object
- 也算是学习中的小总结
- 几种RS485隔离通讯的方案介绍
- [mathematical modeling] differential equation -- sustainable development of fishing industry
- What should the project manager do if there is something wrong with team collaboration?
- Redis 排查大 key 的4种方法,优化必备
- ue5 小知识点 开启lumen的设置
- 11. Intranet penetration and automatic refresh
猜你喜欢
Microblogging hot search stock selection strategy
Codeforces Round #804 (Div. 2)
8. Static file
Weng Kai C language third week 3.1 punch in
[detailed steps of FreeRTOS shift value for the first time]
Vulnerability discovery - vulnerability probe type utilization and repair of web applications
Yolov5 tensorrt acceleration
ORM aggregate query and native database operation
Postman前置脚本-全局变量和环境变量
Embedded development program framework
随机推荐
内核判断i2c地址上是否挂载外设
树莓派3.5寸屏幕白屏显示连接
Redis has four methods for checking big keys, which are necessary for optimization
Collection + interview questions
Selection sort
C'est un petit résumé de l'étude.
项目经理,你会画原型嘛?项目经理需要做产品设计了?
IPv6 comprehensive experiment
RTP gb28181 document testing tool
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[try to hack] John hash cracking tool
【LGR-109】洛谷 5 月月赛 II & Windy Round 6
麦斯克电子IPO被终止:曾拟募资8亿 河南资产是股东
Flody的应用
Postman test report
11. Intranet penetration and automatic refresh
Quatre méthodes de redis pour dépanner les grandes clés sont nécessaires pour optimiser
How does vs change the project type?
Vulnerability discovery - vulnerability probe type utilization and repair of web applications
Postman pre script - global variables and environment variables