【发布时间】:2015-05-23 16:04:35
【问题描述】:
我已经编写了以下查询。它没有给出任何输出
select mfg_name, wm_concat(cal_wid||','||mkt_share) concated_mkt_share from shares group by mfg_name order by cal_wid
当我使用下面的代码时,当我将cal_wid 包含在group by 中时,它运行良好
select mfg_name, wm_concat(cal_wid||','||mkt_share) concated_mkt_share from shares group by mfg_name, **cal_wid** order by cal_wid
我正在使用 jquery 将这些值附加到某些应用程序。第二个查询的输出不支持我的应用程序。 I am trying to use the first query but with order by of cal_wid. So can I use the cal_wid without using it in group_by
【问题讨论】:
-
它正在输出 - 它报告一个错误。您看不到错误意味着您的代码在其他地方存在缺陷。
标签: mysql oracle group-by sql-order-by concat