题解 | #插入记录(二)#

插入记录(二)

https://www.nowcoder.com/practice/9681abf28745468c8adacb3b029a18ce

insert into exam_record_before_2021 (uid,exam_id,start_time,submit_time,score) select uid,exam_id,start_time,submit_time,score from exam_record where year(submit_time)<2021;

全部评论
关键点在于auto_increment类型的变量不能插入,于是选择性的插入。
点赞 回复 分享
发布于 2024-03-22 00:22 上海

相关推荐

牛至超人:哈工大已经很棒了,不需要加括号了,然后咋没有实习经历呢?火速趁寒假整一段实习,导师不让就狠狠肘击
投了多少份简历才上岸
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务