Quantcast
Channel: 미래인재 매매배나
Viewing all articles
Browse latest Browse all 273

ROW 값을 Column형태로 변형하기

$
0
0
SELECT 의 ROW 표현을 옆으로 쫙 붙이고 싶을때, XML 기법을 사용하여 다음과 같이 이용할 수 있다. select substr(xmlagg(xmlelement(A,',' || BASCDNM)).extract('//text()').GETSTRINGVAL(), 2) TESTfrom comccodemwhere codeflag = '1234' --------------------------------- >>> --------------------------- 1 1, 2, 3, 4, 5, 6, 7, 8 2 3 4 5 6 7 8

Viewing all articles
Browse latest Browse all 273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>