Crystal Reports 和sql-server共同进行报表的开发--存储过程-实践(8) OPEN cur3_5 SET @total = @@CURSOR_ROWS CLOSE cur3_5 DEALLOCATE cur3_5
INSERT INTO #temp_proc3 VALUES (@userid , @handled , @total) FETCH NEXT FROM cur3_2 INTO @userid END CLOSE cur3_2 DEALLOCATE cur3_2 SELECT * FROM #temp_proc3 DROP TABLE #temp_proc3
D:将日期格式转换成整型 fgw_util1.txt
--fgw_util1 CREATE PROCEDURE [AHD].[fgw_util1] (@time datetime, @seconds int output) AS set @seconds=datediff(ss,'1970-01-01 00:00:00', @time) GO