Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON
UPDATE CURRENT_TIMESTAMP .

Answers were Sorted based on User's Feedback



Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ...

Answer / 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

Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ...

Answer / amith

The column exhibits the same behavior as a single timestamp
column in a table with no other timestamp columns.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MySQL Interview Questions

How many queries can mysql handle?

0 Answers  


How do I create a schema in mysql?

0 Answers  


How to display top 10 rows in mysql?

0 Answers  


What is difference between function and procedure in mysql?

0 Answers  


What are triggers mysql?

0 Answers  






Why mysql is used with php?

0 Answers  


How do you start MySQL on Linux?

5 Answers   Cybernet,


What is difference between unix timestamp and mysql timestamp?

0 Answers  


How do you index just the first four bytes of the column?

2 Answers  


Explain advantages of MyISAM over InnoDB?

1 Answers  


How do I view data in mysql workbench?

0 Answers  


What are MySQL transactions?

2 Answers  


Categories