mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08:00
Update FAQ.
This commit is contained in:
parent
8e95321476
commit
b3fe924f2f
2
doc/FAQ
2
doc/FAQ
@ -958,7 +958,7 @@ BYTEA bytea variable-length array of bytes
|
|||||||
4.22) How do I create a column that will default to the current time?
|
4.22) How do I create a column that will default to the current time?
|
||||||
|
|
||||||
Use now():
|
Use now():
|
||||||
CREATE TABLE test (x int, modtime timestamp default now() );
|
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
|
||||||
|
|
||||||
4.23) Why are my subqueries using IN so slow?
|
4.23) Why are my subqueries using IN so slow?
|
||||||
|
|
||||||
|
@ -1166,7 +1166,7 @@ If you are using a client interface like ODBC you may need to set
|
|||||||
current time?<BR></H4><P>
|
current time?<BR></H4><P>
|
||||||
Use <i>now()</i>:
|
Use <i>now()</i>:
|
||||||
<CODE><PRE>
|
<CODE><PRE>
|
||||||
CREATE TABLE test (x int, modtime timestamp default now() );
|
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
|
||||||
</PRE></CODE>
|
</PRE></CODE>
|
||||||
<P>
|
<P>
|
||||||
<H4><A NAME="4.23">4.23</A>) Why are my subqueries using
|
<H4><A NAME="4.23">4.23</A>) Why are my subqueries using
|
||||||
|
Loading…
Reference in New Issue
Block a user