摘要:--查找存储过程-内容 FROM sys.sql_modules AS m INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id WHERE o.[type] = 'P' and definition like '%NK_WEB.%
阅读全文
摘要:https://blog.csdn.net/weixin_43332500/article/details/105033468 1、语法: sum(字段1 ) over (partition by 字段2 order by 字段3 rows between unbounded preceding a
阅读全文
摘要:窗口函数 row number + partition by 排序 数据排序后再取第一个值 select * from (select *, Row_Number() over (partition by uid order by created_at ) rank from ods_lps_kkb
阅读全文