mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
A word about constraint nature of DEFAULT.
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" XXX standard disclaimer belongs here....
|
||||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.9 1997/10/01 17:05:13 thomas Exp $
|
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.10 1997/10/02 02:50:22 vadim Exp $
|
||||||
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
|
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
|
||||||
.SH NAME
|
.SH NAME
|
||||||
create table \(em create a new class
|
create table \(em create a new class
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
\fBcreate table\fR classname \fB(\fPattname type [not null] [\fBdefault\fP value]
|
\fBcreate table\fR classname \fB(\fPattname type [not null] [\fBdefault\fP value]
|
||||||
[\fB,\fP attname type [\fBnot null\fP] [\fBdefault\fP value] ]\fB )\fP
|
[\fB,\fP attname type [\fBdefault\fP value] [\fBnot null\fP] ]\fB )\fP
|
||||||
[\fBinherits\fR \fB(\fR classname [\fB,\fR classname] \fB)\fR]
|
[\fBinherits\fR \fB(\fR classname [\fB,\fR classname] \fB)\fR]
|
||||||
[\fBconstraint\fR cname \fBcheck\fR \fB(\fR test \fB)\fR [, \fBcheck\fR \fB(\fR test \fB)\fR ] ]
|
[\fBconstraint\fR cname \fBcheck\fR \fB(\fR test \fB)\fR [, \fBcheck\fR \fB(\fR test \fB)\fR ] ]
|
||||||
[\fBarchive\fR \fB=\fR archive_mode]
|
[\fBarchive\fR \fB=\fR archive_mode]
|
||||||
@ -29,6 +29,8 @@ Each attribute may be specified to be non-null and
|
|||||||
each may have a default value, specified by the
|
each may have a default value, specified by the
|
||||||
.IR default
|
.IR default
|
||||||
clause which is the keyword "default" followed by a constant or expression.
|
clause which is the keyword "default" followed by a constant or expression.
|
||||||
|
\fBNote\fR: DEFAULT in version 6.2 works like constraint - there is no
|
||||||
|
way to insert NULL into an attribute having DEFAULT value.
|
||||||
.PP
|
.PP
|
||||||
Each array attribute stores arrays that must have the same number of
|
Each array attribute stores arrays that must have the same number of
|
||||||
dimensions but may have different sizes and array index bounds. An
|
dimensions but may have different sizes and array index bounds. An
|
||||||
|
Reference in New Issue
Block a user