Bug #2040 Functions as default values in columns... give them a chance :)
| Submitted: | 7 Dec 2003 18:01 | Modified: | 23 Nov 2005 23:45 |
|---|---|---|---|
| Reporter: | Kevin Grigorenko | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S4 (Feature request) |
| Version: | OS: | ||
| Assigned to: | CPU Architecture: | Any |
[7 Dec 2003 18:01]
Kevin Grigorenko
[2 Jul 2005 8:06]
Evan Chaney
I would appreciate this feature, as well.
[26 Oct 2005 15:35]
Tal Kormas
This is a great options for auditing. Please add it.
[23 Nov 2005 23:45]
James Day
This was added for timestamps in MySQL 4.1. The description there says: "Any of CURRENT_TIMESTAMP, CURRENT_TIMESTAMP(), or NOW() can be used in the DEFAULT and ON UPDATE clauses. They all have the same effect. " More details at http://dev.mysql.com/doc/refman/4.1/en/timestamp-4-1.html
[28 Nov 2005 15:50]
Tal Kormas
The problem is, that sometimes people want to be able to use this function for a date column, and not a timestamp. What if I want to capture only the current date?
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.