convert an Insert Into... select from... to use COPY ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All;


I have an sql stmt that runs:

insert into x 
( a.col1, a.col2, a.col3,b.col1,b.col2) 
select blah,blah,blah
...
from giant_table a,
     even_bigger_table b
where.....

I wonder, could I convert this to use COPY into the table (x) instead of the 
select stmt?



Thanks in advance

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux