数据库over()函数用法--【SQL Server】

开窗函数:over()
将统计出来的数据分布到原表的每一行中
结合聚合函数、排名函数使用

select sc.*,avg(score) over()
from sc
where sid=1
发布了44 篇原创文章 · 获赞 4 · 访问量 1047

猜你喜欢

转载自blog.csdn.net/qq_44162236/article/details/104747135