我有这个查询,它得到错误“ The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
”
我已经通过TOP
在内部查询中使用解决了这个问题,但在某些情况下我不会测量记录数。还有其他可能解决吗?
select *
from rs_column_lang
where column_id in (
select column_id
from rs_column
order by column_id
)