• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
百里丶落云
Gee,gee,baby,baby
            管理     
2020年7月22日
sql sever 常见游标写法,及如何强制停止
摘要: declare @lot_msg varchar(255) , @ant int/*select @lot_msg =predoccode from propurdadiplanhd where docdate>'2020-07-01'*/ DECLARE cur1 CURSOR FOR selec 阅读全文
posted @ 2020-07-22 09:33 百里丶落云 阅读(795) 评论(0) 推荐(0)
sql 查询月初日期
摘要: -- 当月第一天select dateadd(month, datediff(month, 0, getdate()), 0) -- 当月最后一天(思路:下月的第一天减去一天)select dateadd(month, datediff(month, 0, dateadd(month, 1, get 阅读全文
posted @ 2020-07-22 09:29 百里丶落云 阅读(1274) 评论(1) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3