하나의 테이블에있는 여러 행의 데이터를 새 테이블의 단일 열에 병합하려면 어떻게합니까?새 테이블에서 여러 행의 데이터를 단일 열로 병합하는 방법은 무엇입니까?
create table new_paragraphs
(
id NUMBER
paragraph CLOB
);
create table old_paragraphs
(
id
paragraph CLOB
);
merge into new_paragraphs a
using (select * from old_paragraphs) b
on (id = id)
when matched then
update set a.paragraph = a.paragraph || b.paragraph;
-- Results in error: unable to get a stable set of rows in the source tables
위의 예외는 예외를 throw합니다.
사실, ORA-00918 '결과 : 열 모호 defined'. –