Search Postgresql Archives

Re: view creation question

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

 



Larry White wrote:
I need a read only view that concatenates data from two tables. Basically
both tables would need a simple query like

Select name, description, date from Tasks;

Select name, description, date from Issues;

Is there some way to wrap these two independent queries in a "CREATE VIEW
myview AS" statement?

SELECT * FROM Tasks
UNION ALL
SELECT * FROM Issues;

HTH
--
  Richard Huxton
  Archonet Ltd


[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