在Sql Server中:
第一条语句:select max(UserId) from (select top 5 UserId from tableTest);
第二条语句:select max(a.UserId) from (select top 5 UserId from tableTest) a;
为什么第一条语句不能执行?
在Sql Server中:
第一条语句:select max(UserId) from (select top 5 UserId from tableTest);
第二条语句:select max(a.UserId) from (select top 5 UserId from tableTest) a;
为什么第一条语句不能执行?