随机取记录为何大家的都可以,我的不行??
我的 SQL 版本号:
Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
http://community.csdn.net/Expert/topic/3575/3575098.xml?temp=.3481714中提到“要在一张表(共100条记录)中随机取20条记录”大家测试过没有问题,但我在查询分析器里试了一下出错,不知何解??
SELECT TOP 20 * FROM CompanyShow ORDER BY CompanyId()
'CompanyId' 不是可以识别的 函数名。