Search Postgresql Archives

Save query results to new table

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

 



  It's been several years since I worked with postgres so I tried searching
the web for the correct syntax to save query results to a new table, but
without results.

  I'm running postgresql-9.5.4 here. The query extracts 28162 rows from a
table of 122365 rows. I thought 'save table as' would do the job but have
not found the correct syntax to do this.

  My query is:

select * from monitor_sites where param = 'Cd' or param = 'Co' or param = 'As' or param = 'Hg' or param = 'Zn' or param = 'Pb' or param = 'Cr' or
param = 'Cu';

  If you point me to the appropriate page in the 9.5.x manual I'll figure it
out.

TIA,

Rich


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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux