赞
踩
一:SELECT
DISTINCT
TYPE,
SUBTYPE,
LISTAGG (EN,
' | '
)
WITHIN
GROUP
(
ORDER
BY
EN)
OVER (PARTITION
BY
TYPE, SUBTYPE)
AS
SKILLS
FROM
(
SELECT
DISTINCT
TYPE, SUBTYPE, EN
FROM
IKB
WHERE
SUBTYPE
IN
(
'Technology_Database'
,
'test'
))
二:
regexp_replace((listagg(OV.PNR, ',' ) within group (order by OV.PNR)), '([^,]+)(,\1)+', '\1')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。