注册

子查询中含有 rownum<=5,DM不支持,如果再外面再嵌套一层,DM支持,但是oracle又不支持

蒲公英 2025/01/04 302 2

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:
select
(select xmmc
from (select to_char(wm_concat(distinct('(' || bmbh || ')' || bmmc))) xmmc
from cw_dhfbxmxb b
where zbid = t.guid
and rownum < 5)) xmbm
from cw_dhfbxb t
这样写达梦支持,但是oracle找不到t.guid;

select (select to_char(wm_concat(distinct('(' || bmbh || ')' || bmmc))) xmmc
from cw_dhfbxmxb b
where zbid = t.guid
and rownum < 5) xmbm
from cw_dhfbxb t
达梦不支持,是由于rownum<5的原因;
如何修改能同时兼容这两个数据库?

回答 0
暂无回答
扫一扫
联系客服