摘要: UDF--获取某年某月有多少天 --drop function fn_GetDayofMonth_1 /* HLERP ( [dbo].[GetMonths] ) */ go create function dbo.fn_GetDayofMonth_1 (@Month smallint, @Year 阅读全文
posted @ 2020-06-04 17:14 CDPJ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 年初看到cnblogs上有人说看这本旧书,自己也只是瞟了下,后来在看些OOP东西时,想想没事也看看老古董,于是网购了一本电子版可参考下,它们是怎么一步步来,还没来得及多看,贴图于此. 阅读全文
posted @ 2020-06-04 11:54 CDPJ 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 显示 “Row X of Y,” ,X是当前行,Y是总行数, 那就是 ROW_NUMBER(ORDER BY stor_id) of Count(*) OVER()此处还是以样例数据库 pub 为例说明 select stor_id, ord_date, qty, stor_id_RowID = R 阅读全文
posted @ 2020-06-04 11:35 CDPJ 阅读(133) 评论(0) 推荐(0) 编辑