The rules that apply to the default value for a column that you can specify with the DEFAULT clause of the CREATE TABLE or ALTER TABLE statement are more strict than those for entering values in table columns. The rules also apply for the definition of local variables (in routines). They are contained in the table below:
SQL data type of the |
Possible SQL default value |
CHAR(length) |
|
NCHAR(cu_length) |
|
REF(table) |
|
DECIMAL(precision,scale) |
|
REAL, DOUBLE PRECISION |
|
DATE |
|
TIME(3) |
|
TIMESTAMP(3) |
|
Table 12: Default values for table columns