当前位置:网站首页>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')
边栏推荐
- 驱动开发——第一个HelloDDK
- Postman测试报告
- Use sentinel to interface locally
- 项目经理,你会画原型嘛?项目经理需要做产品设计了?
- Hometown 20 years later (primary school exercises)
- Postman test report
- Canal synchronizes MySQL data changes to Kafka (CentOS deployment)
- 集合详解之 Collection + 面试题
- Redis has four methods for checking big keys, which are necessary for optimization
- Word cover underline
猜你喜欢

Yolov5 tensorrt acceleration

A blog to achieve embedded entry

Vulnerability discovery - vulnerability probe type utilization and repair of web applications

Application of Flody
![[05-1, 05-02, 05-03] network protocol](/img/25/2e9ccc3f31a1fd46c9ab643d48064b.jpg)
[05-1, 05-02, 05-03] network protocol

11. Intranet penetration and automatic refresh

图论的扩展

Fuzzy -- basic application method of AFL

ISP学习(2)

二叉树基本知识和例题
随机推荐
Extension of graph theory
也算是學習中的小總結
Introduction of several RS485 isolated communication schemes
Yolov5 tensorrt acceleration
Quelques conseils communs sur l'inspecteur de l'unit é, généralement pour les extensions d'éditeur ou d'autres
Platformio create libopencm3 + FreeRTOS project
Postman关联
Flink kakfa data read and write to Hudi
关于imx8mp的es8316的芯片调试
Crazy God said redis notes
The video in win10 computer system does not display thumbnails
Fuzzy -- basic application method of AFL
Postman前置脚本-全局变量和环境变量
A little knowledge of CPU, disk and memory
The IPO of mesk Electronics was terminated: Henan assets, which was once intended to raise 800 million yuan, was a shareholder
EditorUtility.SetDirty在Untiy中的作用以及应用
从0到1建设智能灰度数据体系:以vivo游戏中心为例
麦斯克电子IPO被终止:曾拟募资8亿 河南资产是股东
JS quick start (II)
Embedded development program framework