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

What is processlist in mysql?

491


What is a procedure example?

491


How do I drop a database in mysql?

554


Can't connect mysql server on localhost?

497


How do I update a variable in mysql?

488






What mysql means?

489


Can you tell what are various ways to create an index?

457


What is delimiter in mysql?

472


How do I start mysql in mysql workbench?

506


What language does mysql use?

430


What are the advantages of myisam over innodb?

561


Is there a free mysql?

485


What are the objects can be created using CREATE statement?

545


What is the use of mysql workbench?

512


In a property booking section want a query to check that property is booked from StartDate to EndDate.Booking Table field are given id proerty_id start_date checkout_date no_of_visitor booking date status Waiting yours answer.. Thanks In Advance...

2578