You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在SQL数据集中明细字段的参数配置中设置排序,预览查询时提示“ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效”的错误
错误日志&截图:
PreparedStatementCallback; uncategorized SQLException for SQL
[SELECT COUNT(1) total FROM
( select * from
(select a.bhrq,c.code,c.name,a.fhrq,b.classify,(case when isnull(b.ph,'') = '' then b.bmdj else b.ph end) as ph ,b.barcode,b.htdocno,b.wei ,b.bmdj,b.width,b.depth,b.sfkh,b.bzfs,b.ts,b.cg ,a.remarks ,convert(varchar(10),a.bhrq,120) + '' + convert(varchar,a.id) as id ,convert(varchar(10),a.bhrq,120) + '' + convert(varchar,b.deid) as deid
from [Talent_Server_187].[DY].[dbo].[xs_fhdbhde] b left join [Talent_Server_187].[DY].[dbo].[xs_fhdbh] a on b.id = a.id left join [Talent_Server_187].[DY].[dbo].[Bs_Customer] c on a.khid = c.id) jeecg_rp_temp where bhrq>= ? AND bhrq<= ? ORDER BY bhrq,code ASC ) temp_count]; SQL state [S0001]; error code [1033]; 除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。
版本号:
1.8.1 绿色免安装版
问题描述:
在SQL数据集中明细字段的参数配置中设置排序,预览查询时提示“ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效”的错误
错误日志&截图:
PreparedStatementCallback; uncategorized SQLException for SQL
[SELECT COUNT(1) total FROM
( select * from
(select a.bhrq,c.code,c.name,a.fhrq,b.classify,(case when isnull(b.ph,'') = '' then b.bmdj else b.ph end) as ph ,b.barcode,b.htdocno,b.wei ,b.bmdj,b.width,b.depth,b.sfkh,b.bzfs,b.ts,b.cg ,a.remarks ,convert(varchar(10),a.bhrq,120) + '' + convert(varchar,a.id) as id ,convert(varchar(10),a.bhrq,120) + '' + convert(varchar,b.deid) as deid
from [Talent_Server_187].[DY].[dbo].[xs_fhdbhde] b left join [Talent_Server_187].[DY].[dbo].[xs_fhdbh] a on b.id = a.id left join [Talent_Server_187].[DY].[dbo].[Bs_Customer] c on a.khid = c.id) jeecg_rp_temp where bhrq>= ? AND bhrq<= ? ORDER BY bhrq,code ASC ) temp_count]; SQL state [S0001]; error code [1033]; 除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。
重现步骤:
友情提示(为了提高issue处理效率):
The text was updated successfully, but these errors were encountered: