![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
文章平均质量分 64
云朵儿Crystal
这个作者很懒,什么都没留下…
展开
-
SQL窗口函数
SQL中窗口函数翻译 2022-08-09 19:47:13 · 152 阅读 · 0 评论 -
SQL中string、int和时间类型的转化
MySQL 日期时间存储类型 datetime、timestamp 以及 int 的联系和区别mysql日期转换 int转换成显示日期select date_format(from_unixtime(create_at),'%Y-%m-%d %H:%i:%s') as 't' from checkmsg;原创 2022-04-12 10:06:02 · 2715 阅读 · 0 评论 -
SQL进阶篇2-牛客网
文章目录一、窗口函数1.专用窗口函数一、窗口函数1.专用窗口函数1.SQL27 每类试卷得分前3名select tag,uid,rankingfrom ( select tag,uid, row_number() over(partition by tag order by tag,max(score) desc,min(score) desc ,uid desc) ranking from exam_record join examination_info原创 2021-11-22 14:56:09 · 696 阅读 · 0 评论 -
SQL基础知识
1.为了保证数据的完整性有两种分类方法第一种为了保证数据的完整性,可以通过四种方式来实现,约束、规则、默认值、触发器第二种主体完整性:主键约束、唯一约束、自增字段域完整性:非空约束、默认约束参照完整性:外键约束用户自定义完整性...原创 2021-11-22 11:27:35 · 476 阅读 · 0 评论 -
SQL进阶篇1-牛客网
文章目录一、增删改操作1.插入记录一、增删改操作1.插入记录1.SQL1 插入记录(一)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'原创 2021-11-04 10:53:00 · 259 阅读 · 0 评论 -
SQL-牛客网
文章目录一、基础查询二、条件查询1.基础排序2.基础操作符3、高级操作符三、高级查询1.计算函数2.分组查询四、多表查询1.子查询2.链接查询3.组合查询五、必会的常用函数1.条件函数2.日期函数3.文本函数3.窗口函数六、综合练习一、基础查询1.SQL1 查询多列select device_id,gender,age,university from user_profile2.SQL2 查询所有列select * from user_profile3.SQL3 查询结果去重select原创 2021-10-26 20:00:27 · 282 阅读 · 0 评论 -
SQL-牛客/Leetcode
牛客题目原创 2021-10-25 15:57:40 · 95 阅读 · 0 评论