Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit905109f

Browse files
committed
Update FAQ.
1 parent0954ea1 commit905109f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/FAQ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated:Sun Oct 14 19:27:20 EDT 2001
4+
Last updated:Mon Nov 12 02:38:47 EST 2001
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -938,8 +938,8 @@ BYTEA bytea variable-length byte array (null-safe)
938938

939939
4.22) How do I create a column that will default to the current time?
940940

941-
Usenow():
942-
CREATE TABLE test (x int, modtime timestamp DEFAULTnow() );
941+
UseCURRENT_TIMESTAMP:
942+
CREATE TABLE test (x int, modtime timestamp DEFAULTCURRENT_TIMESTAMP );
943943

944944
4.23) Why are my subqueries using IN so slow?
945945

‎doc/src/FAQ/FAQ.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
alink="#0000FF">
1313
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1414

15-
<P>Last updated:Sun Oct 14 19:27:20 EDT 2001</P>
15+
<P>Last updated:Mon Nov 12 02:38:47 EST 2001</P>
1616

1717
<P>Current maintainer: Bruce Momjian (<Ahref=
1818
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -1202,9 +1202,9 @@ <H4><A name="4.22">4.22</A>) How do I create a column that will
12021202
default to the current time?<BR>
12031203
</H4>
12041204

1205-
<P>Use<I>now()</I>:</P>
1205+
<P>Use<I>CURRENT_TIMESTAMP</I>:</P>
12061206
<PRE>
1207-
<CODE>CREATE TABLE test (x int, modtime timestamp DEFAULTnow() );
1207+
<CODE>CREATE TABLE test (x int, modtime timestamp DEFAULTCURRENT_TIMESTAMP );
12081208
</CODE>
12091209
</PRE>
12101210

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp