I know getting a user's registration date should be pretty basic using php, but I was wondering if this was possible directly through mySQL.
I use apache's phpmyadmin and when creating a new column I noticed the type DATE
and the default value CURRENT_TIMESTAMP
, so I was wondering if it would be possible to add a type of column that automatically set the current date when a new line is created (so when a new user is registered) ?
If this possible and is there any constraints to this ? How can I do this ?
Thanks !