SELECT
m.externalmerchantid AS merchant_merchantID,
m.legalname,
m.tradingname,
m.status AS merchant_status,
s.subscriptiontype AS subscriptiontype,
s.externalid AS subscription_merchantID,
s.status AS subscription_status,
s.wayofintegration,
psp.name,
s.startdate,
s.firstactivationdate,
s.enddate,
sb.iban,
sb.sepacreditorid,
listagg(sst.subschemetypeid, ',') WITHIN GROUP (ORDER BY s.subscriptionid)
FROM
msm_merchant m,
msm_subscription s,
msm_subscription_bvn sb,
psp_serviceprovider psp,
msm_subscriptionschemetype sst
WHERE
s.status = 'ACTIVE'
AND m.merchantid = s.merchant_merchantid
AND s.subscriptionid = sb.subscriptionid
AND m.status = 'ACTIVE'
AND sst.subscriptionid = s.subscriptionid
AND m.acquirer_acquirerid = 'RaboNL'
AND s.serviceprovider_providerid = psp.serviceproviderid;
但是获得错误
ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
*Cause:
*Action:
Error at Line: 16 Column: 50