随笔分类 - 存储过程
摘要:案例: Author: HongMan.Wen-- Create date: <Create Date,,>-- Description: 整改完成率统计 CREATE PROCEDURE [dbo].[proc_CountHiddenRanking] -- Add the parameters f
阅读全文
摘要:最近第一次使用sql表变量,感觉挺好用,案例如下: declare @aaa table(Com_SiteGroupID uniqueidentifier) --定义表变量 往表变量里写数据 insert into @aaa select Com_SiteGroupID from Com_SiteG
阅读全文
摘要:最近在项目中需要做一些复杂的图表统计,所以使用了存储过程和游标,案例如下: ALTER PROCEDURE [dbo].[proc_CountSiteGroupByAreaSiteType] -- Add the parameters for the stored procedure hereASB
阅读全文
摘要:CREATE PROCEDURE proc_CountSiteGroupByStructure -- Add the parameters for the stored procedure here @structureType int --传递参数ASBEGIN -- SET NOCOUNT ON
阅读全文
摘要:在orm开发中也会用到存储过程,案例如下: Create proc [dbo].[proc_GetCompanyStructureByDepartStructureId] @Com_StructureId uniqueidentifierASBEGIN declare @structureType
阅读全文

浙公网安备 33010602011771号