diff options
author | Bruce Momjian | 2005-02-01 02:35:48 +0000 |
---|---|---|
committer | Bruce Momjian | 2005-02-01 02:35:48 +0000 |
commit | 3c16965995223b0ae66e027389863448ac0bade7 (patch) | |
tree | 72bd134c5245fe125265d6b4c8140ee204d8d17f /doc/FAQ | |
parent | 2de7ebe91028194d91b9ef69632e094710433323 (diff) |
Remove outer join simulation using UNION now that we have had outer
joins for quite a long time.
Diffstat (limited to 'doc/FAQ')
-rw-r--r-- | doc/FAQ | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -1,7 +1,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL - Last updated: Mon Jan 31 21:31:39 EST 2005 + Last updated: Mon Jan 31 21:35:15 EST 2005 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) @@ -781,7 +781,7 @@ 4.16) How do I create a column that will default to the current time? Use CURRENT_TIMESTAMP: - CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP ); + CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); 4.17) How do I perform an outer join? @@ -801,18 +801,6 @@ is assumed in LEFT, RIGHT, and FULL joins. Ordinary joins are called INNER joins. - In previous releases, outer joins can be simulated using UNION and NOT - IN. For example, when joining tab1 and tab2, the following query does - an outer join of the two tables: - SELECT tab1.col1, tab2.col2 - FROM tab1, tab2 - WHERE tab1.col1 = tab2.col1 - UNION ALL - SELECT tab1.col1, NULL - FROM tab1 - WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2) - ORDER BY col1 - 4.18) How do I perform queries using multiple databases? There is no way to query a database other than the current one. |