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
66create table\(em create a new class
77.SH SYNOPSIS
88.nf
99\fB create table \fR classname\fB ( \fP attname type [not null] [\fB default \fP value]
10- [\fB , \fP attname type [\fB not null \fP ] [\fB default \fP value ] ]\fB ) \fP
10+ [\fB , \fP attname type [\fB default \fP value ] [\fB not null \fP ] ]\fB ) \fP
1111[\fB inherits \fR \fB ( \fR classname [\fB , \fR classname]\fB ) \fR ]
1212[\fB constraint \fR cname\fB check \fR \fB ( \fR test\fB ) \fR [,\fB check \fR \fB ( \fR test\fB ) \fR ] ]
1313[\fB archive \fR \fB = \fR archive_mode]
@@ -29,6 +29,8 @@ Each attribute may be specified to be non-null and
2929each may have a default value, specified by the
3030.IR default
3131clause which is the keyword "default" followed by a constant or expression.
32+ \fB Note \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
3335Each array attribute stores arrays that must have the same number of
3436dimensions but may have different sizes and array index bounds. An