동일한 구조의 데이터 insert
DB/Oracle
2007. 12. 11. 14:36
반응형
동일한 구조의 TABLENAME 이 있을때. 해당되는 데이터를 이동시키고자 할때의 쿼리.
1. 직접 입력.
Insert into aa.TABLENAME (Colum1,Colum2,Colum3)
values('rew',123,'asdf');
2. 동일한 구조의 테이블일 경우 해당 데이터 타겟 이동
Insert into aa.TABLENAME (Colum1,Colum2,Colum3)
select * from TABLENAME where Colum1='search'
반응형