i create a registration form in my jsp project.mysql be the database.i want to insert system date automatically in datebase in the registration time.
A:
You can have a "date_created" field in a table, defined as
date_created timestamp not null default current_timestamp
When you perform an insert on the table ignoring this column, it will automatically be set to the current time of the mysql server.
ceteras
2010-05-07 06:51:33