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

What are the two types of queries?

0 Answers  


How to find second highest salary from a table?

0 Answers  


how to repair a table in mysql?

2 Answers  


Is there a free mysql?

0 Answers  


What is mysql default database?

0 Answers  






What are the steps required to view your mysql database?

0 Answers  


What is max connections in mysql?

0 Answers  


What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?

0 Answers  


What is the datatype of image?

0 Answers  


Is mysql a odbc?

0 Answers  


What is myisam?

0 Answers  


What is mysql in linux?

0 Answers  


Categories