sql server存储过程实例_查询相邻时间段数据统计

一、sql脚本 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO alter PROCEDURE shijianduan (@canshu varchar(100)) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; DECLARE shijian_cur CURSOR for select riqi from c...
sql_server | 2017-07-04 17:50 | 阅读 2252 次 | 评论 0 条