当前位置:首页 > PHP教程 > PHP总结归纳

sqlserver每30分自动生成一次

declare @begintime as datetime declare @endtime as datetime declare @hour as int declare @min as int set @min = datepart(minute, getdate()) if @min 30 begin set @begintime = convert(varchar(10), getdate(), 120) + ' ' + cast(datepart(hour,

  declare @begintime as datetime

  declare @endtime as datetime

  declare @hour as int

  declare @min as int

  set @min = datepart(minute, getdate())

  if @min < 30

  begin

  set @begintime = convert(varchar(10), getdate(), 120) + ' ' + cast(datepart(hour, getdate()) as varchar) + ':30'

  set @endtime = convert(varchar(10), getdate(), 120) + ' ' + cast(datepart(hour, getdate()) as varchar) + ':00'

  set @begintime = dateadd(hour, -1, @begintime)

  end

  else

  begin

  set @begintime = convert(varchar(10), getdate(), 120) + ' ' + cast(datepart(hour, getdate()) as varchar) + ':00'

  set @endtime = convert(varchar(10), getdate(), 120) + ' ' + cast(datepart(hour, getdate()) as varchar) + ':30'

  end

  exec up_genreport @begintime, @endtime

吐了个 "cao" !
吐个槽吧,看都看了
.syntaxhighlighter{padding-top:20px;padding-bottom:20px;} syntaxhighlighter.config.clipboardswf = 'https://www.php1.cn/syntaxhighlighter/scripts/clipboard.swf'; syntaxhighlighter.all();
tools online | 在线开发工具
  • html/js格式化/压缩
  • css代码格式化工具
  • 文章自动排版工具
  • html/js转换
  • utf-8编码转换工具
  • unicode 转换
  • url编码解码
  • 二维码生成工具
  • ip地址查询
  • http状态码(响应码)
  • 网页header头
  • 网页源代码
  • json解析着色
  • diff文件比较
ranklist | 热门文章
  • 1国际搜索离线系统优化之一 全局排序优化
  • 2linux安装设置vnc远程桌面连接来安装oracle 11g
  • 3linux下mysql出现#1036 – table ‘ ‘ is read only 错误解决方法
  • 4使用netback备份oracle报ora-27206错误处理
  • 5lbmysqlping (legendbase mysql ping)
  • 6nginx、php-fpm默认配置与性能–tcp socket还是unix domain sock
  • 7如何杀掉空闲事务


  • 【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!