当前位置:网站首页>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')
边栏推荐
猜你喜欢

ue5 小知识点 开启lumen的设置

Principle and performance analysis of lepton lossless compression

ORM aggregate query and native database operation

Fuzzy -- basic application method of AFL

IPv6 comprehensive experiment

How to estimate the population with samples? (mean, variance, standard deviation)

Application of Flody
![[mathematical modeling] differential equation -- sustainable development of fishing industry](/img/7c/2ab6f2a34bc2c97318537ec8e0b0c5.png)
[mathematical modeling] differential equation -- sustainable development of fishing industry
![[classic example] binary tree recursive structure classic topic collection @ binary tree](/img/39/0319c4be43716f927b9d98d89f7655.jpg)
[classic example] binary tree recursive structure classic topic collection @ binary tree

Postman管理测试用例
随机推荐
Redis 排查大 key 的4種方法,優化必備
Codeforces Round #804 (Div. 2)
How to estimate the population with samples? (mean, variance, standard deviation)
關於Unity Inspector上的一些常用技巧,一般用於編輯器擴展或者其他
集合详解之 Collection + 面试题
Nestjs配置文件上传, 配置中间件以及管道的使用
图论的扩展
饼干(考试版)
IPv6 comprehensive experiment
关于es8316的音频爆破音的解决
L'introduction en bourse de MSK Electronics a pris fin: 800 millions de RMB d'actifs de Henan étaient des actionnaires
Quatre méthodes de redis pour dépanner les grandes clés sont nécessaires pour optimiser
Fuzzy -- basic application method of AFL
Biscuits (examination version)
[classic example] binary tree recursive structure classic topic collection @ binary tree
也算是学习中的小总结
What are the advantages of the industry private network over the public network? What specific requirements can be met?
The web project imported the MySQL driver jar package but failed to load it into the driver
团队协作出了问题,项目经理怎么办?
RT thread analysis - object container implementation and function