ORDER BY 返回一个Cursor,并不返回结果集.而试图将Cursor作为输入将产生了错误. 所以,下列的SQL语句将产生错误: SELECT VerID, IsComplete VerID, IsComplete FROM dbo.T_AOTInfo ORDER BY VerID DESC ) AS TABLE1; 错误: Msg 1033, Level 15, State 1, Line 4 The ORDER BY clause is invalid in views, inline…