Top 36 오라클 Listagg The 32 New Answer

You are looking for information, articles, knowledge about the topic nail salons open on sunday near me 오라클 listagg on Google, you do not find the information you need! Here are the best content compiled and compiled by the https://toplist.maxfit.vn team, along with other related topics such as: 오라클 listagg 오라클 LISTAGG 반대, 오라클 LISTAGG PARTITION BY, 오라클 listagg 문자열 연결의 결과가 너무 깁니다, LISTAGG CLOB, 오라클 LISTAGG WITHIN GROUP, 오라클 LISTAGG DISTINCT, 오라클 LISTAGG 조건, LISTAGG 여러개


#12 [Oracle] LISTAGG(List + Aggregate) | 로우값을 행으로 변경 | 실무에서 매우 유용한 기능
#12 [Oracle] LISTAGG(List + Aggregate) | 로우값을 행으로 변경 | 실무에서 매우 유용한 기능


[Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기)

  • Article author: gent.tistory.com
  • Reviews from users: 41330 ⭐ Ratings
  • Top rated: 3.3 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about [Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기) 오라클에서 여러 행의 컬럼 값을 하나로 합치기 위해서는 XMLAGG(오라클 9i 이하), WM_CONCAT(오라클 10g~11g R1) 함수를 사용하였다. …
  • Most searched keywords: Whether you are looking for [Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기) 오라클에서 여러 행의 컬럼 값을 하나로 합치기 위해서는 XMLAGG(오라클 9i 이하), WM_CONCAT(오라클 10g~11g R1) 함수를 사용하였다. 오라클에서 여러 행의 컬럼 값을 하나로 합치기 위해서는 XMLAGG(오라클 9i 이하), WM_CONCAT(오라클 10g~11g R1) 함수를 사용하였다. 오라클 11g R2 버전부터 WM_CONCAT 함수를 사용을 할 수 없으며 LISTAGG 함수..
  • Table of Contents:

Header Menu

Main Menu

[Oracle] 오라클 LISTAGG 함수 사용법 (중복제거 정렬 컬럼 합치기)

‘데이터베이스오라클’ 관련 글

Sidebar – Right

Sidebar – Footer 1

Sidebar – Footer 2

Sidebar – Footer 3

Copyright © 젠트의 프로그래밍 세상 All Rights Reserved

Designed by JB FACTORY

[Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기)
[Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기)

Read More

LISTAGG

  • Article author: docs.oracle.com
  • Reviews from users: 24826 ⭐ Ratings
  • Top rated: 4.1 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about LISTAGG LISTAGG · As a single-set aggregate function, LISTAGG operates on all rows and returns a single output row. · As a group-set aggregate, the function operates on … …
  • Most searched keywords: Whether you are looking for LISTAGG LISTAGG · As a single-set aggregate function, LISTAGG operates on all rows and returns a single output row. · As a group-set aggregate, the function operates on …
  • Table of Contents:
LISTAGG
LISTAGG

Read More

오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기

  • Article author: lookingfor.tistory.com
  • Reviews from users: 14416 ⭐ Ratings
  • Top rated: 3.3 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about 오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기 Oracle LISTAGG() … LISTAGG()은 오라클 11g부터 지원하는 내장 함수입니다. 컬럼(아래)으로 나열되는 데이터를 로우(가로)로 나열하고 싶은 경우에 사용 … …
  • Most searched keywords: Whether you are looking for 오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기 Oracle LISTAGG() … LISTAGG()은 오라클 11g부터 지원하는 내장 함수입니다. 컬럼(아래)으로 나열되는 데이터를 로우(가로)로 나열하고 싶은 경우에 사용 … Oracle LISTAGG() LISTAGG()은 오라클 11g부터 지원하는 내장 함수입니다. 컬럼(아래)으로 나열되는 데이터를 로우(가로)로 나열하고 싶은 경우에 사용합니다. 즉, 리스트 형태로 나오던 데이터를 그루핑 할 때 유..그림도 좀 그리고,
    여행도 좀 가고,
    코딩도 좀 해보자
  • Table of Contents:

오라클 LISTAGG 여러 행을 하나의 컬럼으로 합치기

티스토리툴바

오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기
오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기

Read More

ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기

  • Article author: aljjabaegi.tistory.com
  • Reviews from users: 27187 ⭐ Ratings
  • Top rated: 3.2 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기 오라클에서 여러개의 열로 된 값을 한 행의 값으로 가져와야 할 때 LISTAGG 함수를 사용한다. – 사용방법. SELECT LISTAGG(가져올컬럼, … …
  • Most searched keywords: Whether you are looking for ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기 오라클에서 여러개의 열로 된 값을 한 행의 값으로 가져와야 할 때 LISTAGG 함수를 사용한다. – 사용방법. SELECT LISTAGG(가져올컬럼, … ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기 11g 에서 추가. 10g 이하는 WM_CONCAT 함수 사용 (WM_CONCAT은 페이지 하단 Link 참고) 오라클에서 여러개의 열로 된 값을 한 행의 값으로 가져와야 할 때 LIS..
  • Table of Contents:

방문자 통계

다크 모드

다국어 번역

글자 크기

카테고리

최근 글

인기 글

최근 댓글

태그

글 보관함

태그

볼 만한 글

댓글0

💲 추천 글

티스토리툴바

ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기
ORACLE LISTAGG 여러 행을 하나의 컬럼으로 가져오기

Read More

[오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )) : 네이버 블로그

  • Article author: blog.naver.com
  • Reviews from users: 15513 ⭐ Ratings
  • Top rated: 4.7 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about [오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )) : 네이버 블로그 [오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )). …
  • Most searched keywords: Whether you are looking for [오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )) : 네이버 블로그 [오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )).
  • Table of Contents:

blog

악성코드가 포함되어 있는 파일입니다

작성자 이외의 방문자에게는 이용이 제한되었습니다

[오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )) : 네이버 블로그
[오라클/SQL] LISTAGG : 컬럼의 레코드들을 전체 그대로, 또는 그룹별로 1개 칸 속에 나열하기 (LISTAGG WITHIN GROUP(ORDER BY ~ )) : 네이버 블로그

Read More

Oracle / PLSQL: LISTAGG Function

  • Article author: www.techonthenet.com
  • Reviews from users: 24667 ⭐ Ratings
  • Top rated: 3.9 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about Oracle / PLSQL: LISTAGG Function The Oracle/PLSQL LISTAGG function concatenates values of the measure_column for each GROUP based on the order_by_clause. Syntax. The syntax for the LISTAGG … …
  • Most searched keywords: Whether you are looking for Oracle / PLSQL: LISTAGG Function The Oracle/PLSQL LISTAGG function concatenates values of the measure_column for each GROUP based on the order_by_clause. Syntax. The syntax for the LISTAGG … This Oracle tutorial explains how to use the Oracle / PLSQL LISTAGG function with syntax and examples. The Oracle / PLSQL LISTAGG function concatenates values of the measure_column for each GROUP based on the order_by_clause.techonthenet, tech on the net, totn, oracle, plsql, functions, listagg function, syntax, parameters, arguments, example, tutorial
  • Table of Contents:

Description

Syntax

Returns

Applies To

Example

Oracle / PLSQL: LISTAGG Function
Oracle / PLSQL: LISTAGG Function

Read More

[SQL] Oracle LISTAGG 함수

  • Article author: pig-programming.tistory.com
  • Reviews from users: 46982 ⭐ Ratings
  • Top rated: 3.0 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about [SQL] Oracle LISTAGG 함수 LISTAGG 함수는 oracle 11g부터 지원하는 내장함수. 리스트 형태의 데이터를 그루핑 할 때 사용한다. 실제 프로젝트에서 몇번 써본적이 있는데 유용 … …
  • Most searched keywords: Whether you are looking for [SQL] Oracle LISTAGG 함수 LISTAGG 함수는 oracle 11g부터 지원하는 내장함수. 리스트 형태의 데이터를 그루핑 할 때 사용한다. 실제 프로젝트에서 몇번 써본적이 있는데 유용 … LISTAGG 함수는 oracle 11g부터 지원하는 내장함수 리스트 형태의 데이터를 그루핑 할 때 사용한다 실제 프로젝트에서 몇번 써본적이 있는데 유용해서 정리해본다 기본구조 SELECT LISTAGG(대상컬럼, 구분자) WIT..
  • Table of Contents:

웅겹살의 프로그래밍 삼매경

[SQL] Oracle LISTAGG 함수 본문

1 LISTAGG 사용법

2 LISTAGG함수 실행 결과에서 중복 제거 ⭐⭐⭐⭐⭐⭐⭐

티스토리툴바

[SQL] Oracle LISTAGG 함수
[SQL] Oracle LISTAGG 함수

Read More

코끼리를 냉장고에 넣는 방법 :: [Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법

  • Article author: dololak.tistory.com
  • Reviews from users: 12032 ⭐ Ratings
  • Top rated: 4.1 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about 코끼리를 냉장고에 넣는 방법 :: [Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법 LISTAGG 사용 형식은 아래와 같습니다. SELECT. LISTAGG(필드명, 구분자). WITHIN GROUP ( ORDER … …
  • Most searched keywords: Whether you are looking for 코끼리를 냉장고에 넣는 방법 :: [Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법 LISTAGG 사용 형식은 아래와 같습니다. SELECT. LISTAGG(필드명, 구분자). WITHIN GROUP ( ORDER … 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법 여러행의 데이터를 하나의 행에 가로로 출력이 가능합니다. 예를 들어 아래 사원 테이블을 보죠. SELECT EMPNO, ENAME, JOB, DEPTNO FRO..
  • Table of Contents:
코끼리를 냉장고에 넣는 방법 :: [Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법
코끼리를 냉장고에 넣는 방법 :: [Oracle] 여러행의 데이터를 하나의 행에 가로로 출력하기 LISTAGG 함수 사용법

Read More

[ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG )

  • Article author: too612.tistory.com
  • Reviews from users: 42390 ⭐ Ratings
  • Top rated: 3.8 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about [ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG ) 꿍스뿡이의 드림빌더 [ORACLE] LISTAGG PARTITION BY, 중복제거 안녕하세요. 꿍스뿡이입니다! 지난시간에 오라클의 LISTAGG의 기본 사용방법을 배웠 … …
  • Most searched keywords: Whether you are looking for [ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG ) 꿍스뿡이의 드림빌더 [ORACLE] LISTAGG PARTITION BY, 중복제거 안녕하세요. 꿍스뿡이입니다! 지난시간에 오라클의 LISTAGG의 기본 사용방법을 배웠 …  꿍스뿡이의 드림빌더 [ORACLE] LISTAGG PARTITION BY, 중복제거 안녕하세요. 꿍스뿡이입니다! 지난시간에 오라클의 LISTAGG의 기본 사용방법을 배웠는데요.오늘은 LISTAGG에서 종종 사용되는 중복제거, 그룹핑하..재테크, 취미, 건강, 리뷰 등을 주로 올리는 블로그 입니다.
  • Table of Contents:
[ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG )

티스토리툴바

[ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG )
[ORACLE] 오라클 여러 행을 하나의 컬럼으로 만들기2 (LISTAGG )

Read More

오라클 – LISTAGG 중복제거 :: 고니의꿈

  • Article author: goni9071.tistory.com
  • Reviews from users: 8194 ⭐ Ratings
  • Top rated: 4.5 ⭐
  • Lowest rated: 1 ⭐
  • Summary of article content: Articles about 오라클 – LISTAGG 중복제거 :: 고니의꿈 오라클 11g 부터 사용할 수 있는 listagg 는 여러 row 데이터를 하나의 row로 문자열을 합쳐서 보여줄 수 있는 함수 입니다. …
  • Most searched keywords: Whether you are looking for 오라클 – LISTAGG 중복제거 :: 고니의꿈 오라클 11g 부터 사용할 수 있는 listagg 는 여러 row 데이터를 하나의 row로 문자열을 합쳐서 보여줄 수 있는 함수 입니다. 오라클 11g 부터 사용할 수 있는 listagg 는 여러 row 데이터를 하나의 row로 문자열을 합쳐서 보여줄 수 있는 함수 입니다. 사용법은 아래와 같습니다. 테이블 생성. create table user_hobby (   user_name..
  • Table of Contents:

오라클 – LISTAGG 중복제거

티스토리툴바

오라클 - LISTAGG 중복제거 :: 고니의꿈
오라클 – LISTAGG 중복제거 :: 고니의꿈

Read More


See more articles in the same category here: toplist.maxfit.vn/blog.

[Oracle] 오라클 LISTAGG 함수 사용법 (중복제거, 정렬, 컬럼 합치기)

오라클에서 여러 행의 컬럼 값을 하나로 합치기 위해서는 XMLAGG(오라클 9i 이하), WM_CONCAT(오라클 10g~11g R1) 함수를 사용하였다. 오라클 11g R2 버전부터 WM_CONCAT 함수를 사용을 할 수 없으며 LISTAGG 함수를 사용해야 한다. (WM_CONCAT, XMLAGG 사용법)

LISTAGG( ) 함수는 그룹 함수이기 때문에 GROUP BY 또는 PARTITION BY 절과 함께 사용해야 한다.

WM_CONCAT 함수는 DISTINCT를 사용할 수 있으나, LISTAGG 함수는 사용할 수 없다. 그러나 정규식 함수를 사용하여 중복을 제거할 수 있으며 ORDER BY 절을 사용할 수 있어서 값의 정렬이 가능하다.

LISTAGG( [합칠 컬럼명] , [구분자] ) WITHIN GROUP(ORDER BY [정렬 컬럼명] )

컬럼 합치기

SELECT LISTAGG(ename, ‘,’) WITHIN GROUP(ORDER BY ename) AS names FROM emp WHERE job IN (‘MANAGER’, ‘SALESMAN’)

GROUP BY 절을 사용하여 컬럽 합치기

SELECT job , LISTAGG(ename, ‘,’) WITHIN GROUP(ORDER BY ename) AS names FROM emp WHERE job IN (‘MANAGER’, ‘SALESMAN’) GROUP BY job

PARTITION BY 절을 사용하여 컬럼 합치기

SELECT ename , job , LISTAGG(ename, ‘,’) WITHIN GROUP(ORDER BY ename) OVER(PARTITION BY job) AS names FROM emp WHERE job IN (‘MANAGER’, ‘SALESMAN’)

PARTITION BY 절을 사용하면 조회된 행을 그대로 유지하면서 합쳐진 컬럼의 값을 표시할 수 있다.

중복을 제거하여 컬럼 합치기

SELECT job , REGEXP_REPLACE(LISTAGG(deptno, ‘,’) WITHIN GROUP(ORDER BY deptno), ‘([^,]+)(,\1)*(,|$)’, ‘\1\3’) deptnos FROM emp WHERE job IN (‘MANAGER’, ‘SALESMAN’, ‘CLERK’) GROUP BY job

REGEXP_REPLACE 정규식 함수를 사용하여 컬럼의 중복을 제거하는 방법이며, 값의 순서로 정렬되어 있어야 정확한 중복제거가 된다. (ORDER BY deptno)

사용 예제

사용_예제_쿼리.txt 0.01MB

※ 정규식 참고

SELECT REGEXP_REPLACE(‘10,10,10,10,20,30,40,50’, ‘([^,]+)(,\1)*(,|$)’, ‘\1\3’) AS val , REGEXP_SUBSTR(‘10,10,10,10,20,30,40,50’, ‘([^,]+)’) AS “\1” , REGEXP_SUBSTR(‘10,10,10,10,20,30,40,50’, ‘([^,]+)(,\1)*’) AS “\2” , REGEXP_SUBSTR(‘10,10,10,10,20,30,40,50’, ‘(,|$)’) AS “\3” FROM dual

LISTAGG

129/522

LISTAGG

Syntax

See Also: ORDER BY clause and OVER clause “Analytic Functions” for information on syntax, semantics, and restrictions of theclause andclause

Purpose

For a specified measure, LISTAGG orders data within each group specified in the ORDER BY clause and then concatenates the values of the measure column.

As a single-set aggregate function, LISTAGG operates on all rows and returns a single output row.

As a group-set aggregate, the function operates on and returns an output row for each group defined by the GROUP BY clause.

As an analytic function, LISTAGG partitions the query result set into groups based on one or more expression in the query_partition_clause .

The arguments to the function are subject to the following rules:

The measure_expr can be any expression. Null values in the measure column are ignored.

The delimiter_expr designates the string that is to separate the measure values. This clause is optional and defaults to NULL .

The order_by_clause determines the order in which the concatenated values are returned. The function is deterministic only if the ORDER BY column list achieved unique ordering.

The return data type is RAW if the measure column is RAW ; otherwise the return value is VARCHAR2 .

Aggregate Examples

The following single-set aggregate example lists all of the employees in Department 30 in the hr.employees table, ordered by hire date and last name:

SELECT LISTAGG(last_name, ‘; ‘) WITHIN GROUP (ORDER BY hire_date, last_name) “Emp_list”, MIN(hire_date) “Earliest” FROM employees WHERE department_id = 30; Emp_list Earliest ———————————————————— ——— Raphaely; Khoo; Tobias; Baida; Himuro; Colmenares 07-DEC-02

The following group-set aggregate example lists, for each department ID in the hr.employees table, the employees in that department in order of their hire date:

SELECT department_id “Dept.”, LISTAGG(last_name, ‘; ‘) WITHIN GROUP (ORDER BY hire_date) “Employees” FROM employees GROUP BY department_id ORDER BY department_id; Dept. Employees —— ———————————————————— 10 Whalen 20 Hartstein; Fay 30 Raphaely; Khoo; Tobias; Baida; Himuro; Colmenares 40 Mavris 50 Kaufling; Ladwig; Rajs; Sarchand; Bell; Mallin; Weiss; Davie s; Marlow; Bull; Everett; Fripp; Chung; Nayer; Dilly; Bissot ; Vollman; Stiles; Atkinson; Taylor; Seo; Fleaur; Matos; Pat el; Walsh; Feeney; Dellinger; McCain; Vargas; Gates; Rogers; Mikkilineni; Landry; Cabrio; Jones; Olson; OConnell; Sulliv an; Mourgos; Gee; Perkins; Grant; Geoni; Philtanker; Markle 60 Austin; Hunold; Pataballa; Lorentz; Ernst 70 Baer . . .

Analytic Example

The following analytic example shows, for each employee hired earlier than September 1, 2003, the employee’s department, hire date, and all other employees in that department also hired before September 1, 2003:

SELECT department_id “Dept”, hire_date “Date”, last_name “Name”, LISTAGG(last_name, ‘; ‘) WITHIN GROUP (ORDER BY hire_date, last_name) OVER (PARTITION BY department_id) as “Emp_list” FROM employees WHERE hire_date < '01-SEP-2003' ORDER BY "Dept", "Date", "Name"; Dept Date Name Emp_list ----- --------- --------------- --------------------------------------------- 30 07-DEC-02 Raphaely Raphaely; Khoo 30 18-MAY-03 Khoo Raphaely; Khoo 40 07-JUN-02 Mavris Mavris 50 01-MAY-03 Kaufling Kaufling; Ladwig 50 14-JUL-03 Ladwig Kaufling; Ladwig 70 07-JUN-02 Baer Baer 90 13-JAN-01 De Haan De Haan; King 90 17-JUN-03 King De Haan; King 100 16-AUG-02 Faviet Faviet; Greenberg 100 17-AUG-02 Greenberg Faviet; Greenberg 110 07-JUN-02 Gietz Gietz; Higgins 110 07-JUN-02 Higgins Gietz; Higgins

오라클 LISTAGG, 여러 행을 하나의 컬럼으로 합치기

반응형

Oracle LISTAGG()

LISTAGG()은 오라클 11g부터 지원하는 내장 함수입니다.

컬럼(아래)으로 나열되는 데이터를 로우(가로)로 나열하고 싶은 경우에 사용합니다.

즉, 리스트 형태로 나오던 데이터를 그루핑 할 때 유용합니다.

그럼 구체적으로 사용 방법을 알아보겠습니다.

기본 형태

기본적으로 LISTAGG 인자는 합칠 컬럼명과 구분자입니다.

구분자는 단순히 구분하기 위한 목적으로 아무 문자나 사용해도 됩니다.

1 2 3 SELECT LISTAGG(대상컬럼, 구분자) WITHIN GROUP ( ORDER BY 정렬기준컬럼) FROM 테이블 ; Colored by Color Scripter cs

SELECT 절에 LISTAGG 외에 컬럼을 표시하면 합칠 때 기준이 됩니다.

만약 LISTAGG만 사용한다면 모든 이름이 하나의 컬럼으로 표시됩니다.

예시 데이터

테이블 명: MEMBER_INFO

함수 사용법 예시1

모든 멤버를 하나의 컬럼으로 표시하기

1 2 3 SELECT LISTAGG(MEMBER_NAME, ‘,’ ) WITHIN GROUP ( ORDER BY MEMBER_LEVEL) AS MEMBER_LIST FROM MEMBER_INFO ; Colored by Color Scripter cs

함수 사용법 예시2

같은 멤버십 등급끼리 하나의 컬럼으로 표시하기

1 2 3 4 SELECT MEMBER_LEVEL , LISTAGG(MEMBER_NAME, ‘,’ ) WITHIN GROUP ( ORDER BY MEMBER_LEVEL) AS MEMBER_LIST FROM MEMBER_INFO ; Colored by Color Scripter cs

함수 사용법 예시3

같은 나이대 별로 하나의 컬럼으로 표시하기

1 2 3 4 SELECT AGE_TYPE , LISTAGG(MEMBER_NAME, ‘,’ ) WITHIN GROUP ( ORDER BY MEMBER_LEVEL) AS MEMBER_LIST FROM MEMBER_INFO ; Colored by Color Scripter cs

* 만약 오라클 11g 이전 버전을 사용하신다면 WM_CONCAT 함수를 사용하시면 됩니다.

반응형

So you have finished reading the 오라클 listagg topic article, if you find this article useful, please share it. Thank you very much. See more: 오라클 LISTAGG 반대, 오라클 LISTAGG PARTITION BY, 오라클 listagg 문자열 연결의 결과가 너무 깁니다, LISTAGG CLOB, 오라클 LISTAGG WITHIN GROUP, 오라클 LISTAGG DISTINCT, 오라클 LISTAGG 조건, LISTAGG 여러개

Leave a Comment