当前位置:网站首页>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')
边栏推荐
- Application of Flody
- [classic example] binary tree recursive structure classic topic collection @ binary tree
- Basic knowledge and examples of binary tree
- What are the advantages of the industry private network over the public network? What specific requirements can be met?
- Redis has four methods for checking big keys, which are necessary for optimization
- 力扣(LeetCode)186. 翻转字符串里的单词 II(2022.07.05)
- Basic explanation of turtle module - draw curve
- Selection of slow motion function
- Acwing week 58
- 图论的扩展
猜你喜欢
![[detailed steps of FreeRTOS shift value for the first time]](/img/73/a469eb2465bb2c5acaa4d018d3edd3.jpg)
[detailed steps of FreeRTOS shift value for the first time]

Leetcode dynamic planning day 16

Bill Gates posted his 18-year-old resume and expected an annual salary of $12000 48 years ago

比尔·盖茨晒18岁个人简历,48年前期望年薪1.2万美元

Zynq learning notes (3) - partial reconfiguration

Codeforces Round #804 (Div. 2)

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

RT thread analysis - object container implementation and function

RTP gb28181 document testing tool

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
随机推荐
What are the advantages of the industry private network over the public network? What specific requirements can be met?
The kernel determines whether peripherals are attached to the I2C address
2021 robocom world robot developer competition - undergraduate group (semi-finals)
Yolov5 tensorrt acceleration
Redis 排查大 key 的4种方法,优化必备
Basic explanation of turtle module - draw curve
Redis has four methods for checking big keys, which are necessary for optimization
A little knowledge of CPU, disk and memory
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
Database - MySQL storage engine (deadlock)
几种RS485隔离通讯的方案介绍
idea一键导包
Postman测试报告
Delete subsequence < daily question >
图论的扩展
EditorUtility. The role and application of setdirty in untiy
MIT CMS. 300 session 8 – immersion / immersion
Postman前置脚本-全局变量和环境变量
Codeforces Round #804 (Div. 2)
Request (request object) and response (response object)