tags:

views:

35

answers:

2

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: 

Have a look at Date and Time functions of mysql. This may help you.

Himadri
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