Using column defaults

Column defaults automatically assign a specified value to a particular column or set of columns whenever someone enters a new row into a database table. The default value assigned requires no action on the part of the client application. However, if the client application does specify a value for the column, the new value overrides the column default value.

Column defaults can quickly and automatically fill columns with information, such as the date or time a row is inserted or the user ID of the person who first modified a row in a table. Using column defaults encourages data integrity, but does not enforce it. Client applications can always override defaults.

Supported default values

Sybase IQ supports the following default values for columns:

Default value restrictions

Sybase IQ does not support the following values for column defaults:

Sybase IQ ignores settings for the DEFAULT_TIMESTAMP_INCREMENT database option.