Как заполнить поле datetime?

IF

else
возможно ли использовать now() в качестве default для datetime? в мануале не нашёл, в дюбуа нет, а вот в рецептах дюбуа (которые устарели) написано, что начиная с 4.1 это будет возможно.
 

baev

‹°°¬•
Команда форума
RTFM
Вот тут —
http://dev.mysql.com/doc/refman/4.1/en/create-table.html
— написано:
The DEFAULT clause specifies a default value for a column. With one exception, the default value must be a constant; it cannot be a function or an expression. This means, for example, that you cannot set the default for a date column to be the value of a function such as NOW() or CURRENT_DATE. The exception is that you can specify CURRENT_TIMESTAMP as the default for a TIMESTAMP column as of MySQL 4.1.2. See Section 11.3.1.2, “TIMESTAMP Properties as of MySQL 4.1”.
 
Сверху