2012-10-30 2 views

답변

0

어쨌든 뷰의 ddl을 바꿔야합니다.

이 방법으로 그것을 할 수 있습니다

create or replace view_name 
as 
select col1, col2, 'schema1' as schema_name 
from schema1.table 
union all 
select col1, col2, 'schema2' 
from schema2.table 
union all 
select col1, col2, 'schema3' 
from schema3.table 
... 
+0

감사합니다! 나는 그것을 그렇게 선언하는 것을 잊어 버렸다. 내 DBA가 알아낼 수 없을 때 더 복잡한 방법이라고 생각했습니다. – ecfitzgerald

관련 문제