62,254
社区成员
发帖
与我相关
我的任务
分享
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE proc [dbo].[proc_CustomPaging]
@L1 nvarchar(30)
as
select top 20 * from table where L1 = @L1
GO
我都自己试过了newid()在七百万行中随机抽取会慢的要死,哦对了,我好像忘说了,我还必须往随机抽取的sql语句里插入查询条件 private static int GetNewSeed()
{
byte[] rndBytes = new byte[4];
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
rng.GetBytes(rndBytes);
return BitConverter.ToInt32(rndBytes, 0);
}