摘要: -- 分期值到累计值代码示例1with temp00 as (select '2020-01-01' date1,1 num1union all select '2020-01-02' adate1,2 num1 union all select '2020-01-03' date1,3 num1u 阅读全文
posted @ 2020-03-02 23:32 林远 阅读(204) 评论(0) 推荐(0)
摘要: -- 以下都是源自本月第一天-- dateadd(day,-day(getdate())+1,getdate())-- 本月第一天日期-- 当前日期 - 当前日期为多少号 + 1select dateadd(day,-day(getdate())+1,getdate()) date1;/*说明:da 阅读全文
posted @ 2020-03-02 22:27 林远 阅读(445) 评论(0) 推荐(0)