|
If table 1 and table 2 have the same field names and attributes, you can
use:
insert into table 2 select * from table 1 (where .....)
Jeff Young
Sr. Programmer Analyst
On Wed, Jan 6, 2016 at 10:05 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
HI I would like to basically an CPYF, but in sql. This would work tocreate
a copy of a file with adding all columns and data. But what I want is thelist
table2 already exists, can i use this below example to copy all contents
data into table2 from table1?
INSERT INTO table2
(column_name(s))
SELECT column_name(s)
FROM table1;
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.