Defining Columns

From InterBase
Jump to: navigation, search

Go Up to Creating Tables (Data Definition Guide)


When you create a table in the database, your main task is to define the various attributes and constraints for each of the columns in the table. The syntax for defining a column is:

<col_def> = col {datatype
| COMPUTED [BY] (<expr>)
| domain}
 [DEFAULT {literal | NULL | USER}]
 [NOT NULL] [<col_constraint>]
 [COLLATE collation]

The next sections list the required and optional attributes that you can define for a column.

Topics