Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON
UPDATE CURRENT_TIMESTAMP .

Answer Posted / prasanna shejwal

TIMESTAMP DEFAULT :- when new row get inserted or existing
row get updated that time current timestamp get inserted.

CURRENT_TIMESTAMP :- when row get inserted that time current
timestamp get inserted. No change on update.

ON UPDATE CURRENT_TIMESTAMP :- when row get updated that
time current timestamp get inserted. On inserted default
value get inserted

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to see table's field formats or description of table .

681


What are the steps involved in query processing?

676


How do you shutdown a mysql database?

763


What is 'mysqlimport'?

709


What is text in mysql?

708


What is the difference between b-tree and hash indexes?

734


What is pragma autonomous_transaction?

662


What is the size of mysql database?

706


Restore database (or database table) from backup.

796


Why to use char instead of varchar in the database?

826


How important is to list the column names when doing an insert?

810


What is sqlyog?

843


Explain the difference between mysql_fetch_array(), mysql_fetch_object()?

692


How many tables we can create in mysql database?

710


What is procedure in mysql?

722