摘要: 不能传入out或ref public IEnumerable GetShop() { for (int i = 1; i < 11; i++) { yield return new Shop ... 阅读全文
posted @ 2015-06-25 16:49 哈哈2222 阅读(216) 评论(0) 推荐(1)
摘要: ALTER FUNCTION [dbo].[fu_GetCaption](@Stage nvarchar(50),@T_stage_weeks int,@S_stage_months int,@RowNum int --第几行)RETURNS nvarchar(260)ASBEGINDeclare ... 阅读全文
posted @ 2015-06-25 16:23 哈哈2222 阅读(187) 评论(0) 推荐(1)
摘要: /*SELECT dbo.fn_PadLeft('8', '0', 6) */create function fn_PadLeft(@num nvarchar(16),@paddingChar char(1),@totalWidth int)returns nvarchar(16) asbegin... 阅读全文
posted @ 2015-06-25 16:19 哈哈2222 阅读(237) 评论(0) 推荐(1)
摘要: DROP TABLE #MTDDECLARE @startDate date = '20150601' ,@endDate date = cast(getdate() as date)CREATE TABLE #MTD(bydate date)DECLARE @count int = D... 阅读全文
posted @ 2015-06-25 16:18 哈哈2222 阅读(336) 评论(0) 推荐(1)