Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 61a72be

Browse files
committed
A word about constraint nature of DEFAULT.
1 parent 127f21c commit 61a72be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/man/create_table.l

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.9 1997/10/01 17:05:13 thomas Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.10 1997/10/02 02:50:22 vadim Exp $
44
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
55
.SH NAME
66
create table \(em create a new class
77
.SH SYNOPSIS
88
.nf
99
\fBcreate table\fR classname \fB(\fPattname type [not null] [\fBdefault\fP value]
10-
[\fB,\fP attname type [\fBnot null\fP] [\fBdefault\fP value] ]\fB )\fP
10+
[\fB,\fP attname type [\fBdefault\fP value] [\fBnot null\fP] ]\fB )\fP
1111
[\fBinherits\fR \fB(\fR classname [\fB,\fR classname] \fB)\fR]
1212
[\fBconstraint\fR cname \fBcheck\fR \fB(\fR test \fB)\fR [, \fBcheck\fR \fB(\fR test \fB)\fR ] ]
1313
[\fBarchive\fR \fB=\fR archive_mode]
@@ -29,6 +29,8 @@ Each attribute may be specified to be non-null and
2929
each may have a default value, specified by the
3030
.IR default
3131
clause which is the keyword "default" followed by a constant or expression.
32+
\fBNote\fR: DEFAULT in version 6.2 works like constraint - there is no
33+
way to insert NULL into an attribute having DEFAULT value.
3234
.PP
3335
Each array attribute stores arrays that must have the same number of
3436
dimensions but may have different sizes and array index bounds. An

0 commit comments

Comments
 (0)