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

Commit61a72be

Browse files
committed
A word about constraint nature of DEFAULT.
1 parent127f21c commit61a72be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/man/create_table.l‎

Lines changed: 4 additions & 2 deletions
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
\fBcreatetable\fR classname\fB(\fPattname type [not null] [\fBdefault\fP value]
10-
[\fB,\fP attname type [\fBnotnull\fP] [\fBdefault\fP value] ]\fB)\fP
10+
[\fB,\fP attname type [\fBdefault\fP value] [\fBnotnull\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)

[8]ページ先頭

©2009-2025 Movatter.jp