Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to insert rows from another table except one column

ChakravarthyDBAJun 15 2012 — edited Jun 15 2012
Hi

I have a table NEXT_OF columns (sysid,name,address,city...) in one database, in other database I have same table and structure however the column sysid has sequence to generate new one. remaining columns I want from first database

INSERT INTO NEXT_OF (SELECT * FROM NEXT_OF@V8_V6_LINK, here V8_V6_LINK); is database link

now I want null value for sysid and for rest of the columns from first database of NEXT_OF table, please guide how do I update this.

I know that I can insert by using below however I have 20 columns write and I need to update 27 tables like this

INSERT INTO NEXT_OF (SELECT NULL,NAME,ADDRESS,CITY FROM NEXT_OF@V8_V6_LINK);

plz help me out

Regards
Chakri
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2012
Added on Jun 15 2012
4 comments
2,058 views