为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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的原因;
如何修改能同时兼容这两个数据库?
看了下您说的问题,下面那个写法达梦也是支持的呀,这边测试并没有报错
