Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Update ALL colums without knowing their name??
If all you are trying to do is replace the rows in table1 with the contents of table2 do the following
truncate table table1;
insert into table1 select * from table2;
commit;
If you want to append the data, leave out the truncate.
>>> starsoft_at_interware.hu 07/23/01 05:33PM >>>
Hi,
I need an universal update procedure in which I don' t know the colums name.
How can I make an update like this:
Update Table1 set Every_columns = ( Select * from Table2)
I tried set Table1.* wiht no result.
How can I work around this?
Thank you in advance
Zsolt Csillag,
Hungary
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Csillag Zsolt INET: starsoft_at_interware.hu Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: William Beilstein INET: BeilstWH_at_obg.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jul 23 2001 - 15:49:18 CDT
![]() |
![]() |