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 would you get the current date in mysql?

652


How do you restart mysql?

485


What is pdo in php mysql?

504


How many types of indexes are there in mysql?

484


how to display nth highest salary from a table in a mysql query? : Mysql dba

576






How to copy data from one server to another using php?

534


How show all tables in mysql query?

480


How to enter numeric values as hex numbers?

537


Explain the different types of mysql joins.

498


What is database in php mysql?

497


What is sql in mysql?

569


What does innodb stand for?

531


How to Set a root password if there is on root password.

588


How many columns can you create for an index?

493


What are programming functions?

492