Fetch the repository succeeded.
1.3
数据集:Mssqlserver2008 R2 , SQL查询单表加 Order by 排序, 解析正确,报表预览时报错
StatementCallback; uncategorized SQLException for SQL [SELECT COUNT(1) total FROM ( select * from rep_monmadephb order by odr desc ) temp_count]; SQL state [S0001]; error code [1033]; 除非另外还指定了 TOP 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 除非另外还指定了 TOP 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。