10
10
alink ="#0000ff ">
11
11
< H1 > Frequently Asked Questions (FAQ) for PostgreSQL</ H1 >
12
12
13
- < P > Last updated: Mon Jan 31 21:31:39 EST 2005</ P >
13
+ < P > Last updated: Mon Jan 31 21:35:15 EST 2005</ P >
14
14
15
15
< P > Current maintainer: Bruce Momjian (< A href =
16
16
"mailto:pgman@candle.pha.pa.us "> pgman@candle.pha.pa.us</ A > )
@@ -1006,7 +1006,7 @@ <H4><A name="4.16">4.16</A>) How do I create a column that will
1006
1006
1007
1007
< P > Use < I > CURRENT_TIMESTAMP</ I > :</ P >
1008
1008
< PRE >
1009
- CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
1009
+ CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
1010
1010
</ PRE >
1011
1011
1012
1012
< H4 > < A name ="4.17 "> 4.17</ A > ) How do I perform an outer join?</ H4 >
@@ -1032,23 +1032,6 @@ <H4><A name="4.17">4.17</A>) How do I perform an outer join?</H4>
1032
1032
< SMALL > RIGHT</ SMALL > , and < SMALL > FULL</ SMALL > joins. Ordinary joins
1033
1033
are called < SMALL > INNER</ SMALL > joins.</ P >
1034
1034
1035
- < P > In previous releases, outer joins can be simulated using
1036
- < SMALL > UNION</ SMALL > and < SMALL > NOT IN</ SMALL > . For example, when
1037
- joining < I > tab1</ I > and < I > tab2</ I > , the following query does an
1038
- < I > outer</ I > join of the two tables:< BR >
1039
- < BR >
1040
- </ P >
1041
- < PRE >
1042
- SELECT tab1.col1, tab2.col2
1043
- FROM tab1, tab2
1044
- WHERE tab1.col1 = tab2.col1
1045
- UNION ALL
1046
- SELECT tab1.col1, NULL
1047
- FROM tab1
1048
- WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
1049
- ORDER BY col1
1050
- </ PRE >
1051
-
1052
1035
< H4 > < A name ="4.18 "> 4.18</ A > ) How do I perform queries using
1053
1036
multiple databases?</ H4 >
1054
1037
0 commit comments