1
1
.\" This is -*-nroff-*-
2
2
.\" XXX standard disclaimer belongs here....
3
- .\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.8 1997/09/27 03:58:29 momjian Exp $
3
+ .\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.9 1997/10/01 17:05:13 thomas Exp $
4
4
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
5
5
.SH NAME
6
6
create table\(em create a new class
7
7
.SH SYNOPSIS
8
8
.nf
9
- \fB create table \fR classname\fB ( \fP attname type [\fB default \fP value]
10
- [\fB , \fP attname type [\fB default \fP value] ]\fB ) \fP
9
+ \fB create table \fR classname\fB ( \fP attname type [not null] [ \fB default \fP value]
10
+ [\fB , \fP attname type [\fB not null \fP ] [ \ fBdefault \fP value] ]\fB ) \fP
11
11
[\fB inherits \fR \fB ( \fR classname [\fB , \fR classname]\fB ) \fR ]
12
12
[\fB constraint \fR cname\fB check \fR \fB ( \fR test\fB ) \fR [,\fB check \fR \fB ( \fR test\fB ) \fR ] ]
13
13
[\fB archive \fR \fB = \fR archive_mode]
@@ -25,7 +25,8 @@ and the attributes are as specified in the list of
25
25
Each attribute is created with the type specified by
26
26
.IR type " ."
27
27
Each type may be a simple type, a complex type (set) or an array type.
28
- Each attribute may have a default value, specified by the
28
+ Each attribute may be specified to be non-null and
29
+ each may have a default value, specified by the
29
30
.IR default
30
31
clause which is the keyword "default" followed by a constant or expression.
31
32
.PP