首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

用NEWID()随机选出N条记录

整理日期:2007年08月19日 【字体:

uniqueidentifier是全局唯一标识符 (GUID)
NEWID()返回类型为uniqueidentifier
SQL SERVER联机帮助中的例子:
declare @myid uniqueidentifier
set @myid=newid()

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1187531718.html
print 'Value of @myid is '+cast(@myid as varchar(255))
Tags:
用NEWID()随机选出N条记录
'http://www.etoow.com/html/2007-08/1187531718.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved