select *
from (select *,rn=ROW_NUMBER() OVER(partition by UserId order by asID) from AuctionSell where cast(UserId as varchar) LIKE '66000%')t
where rn<=3 ------解决方案--------------------
SELECT B.*
FROM dbo.userTb A
INNER JOIN dbo.AuctionShell b
ON A.UserId = b.UserID
WHERE a.Userid LIKE '66000%' AND
(
SELECT COUNT(1)
FROM dbo.AcuctionShell n
WHERE n.UserId = b.UserID
AND n.ASID <= b.ASID
) <= 3