sql语句在查询分析器中能执行,但是程序却不能执行,一直报错order by 附近有语法错误

2024-11-19 01:03:50
推荐回答(2个)
回答1:

select * from (select top 10 * from tableName ) order by id desc 要加一个别名

select * from (select top 10 * from tableName ) a order by id desc

回答2:

from tableName) orde 加空格