Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON
UPDATE CURRENT_TIMESTAMP .
Answers were Sorted based on User's Feedback
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 |
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 |
What are the two types of queries?
How to find second highest salary from a table?
how to repair a table in mysql?
Is there a free mysql?
What is mysql default database?
What are the steps required to view your mysql database?
What is max connections in mysql?
What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?
What is the datatype of image?
Is mysql a odbc?
What is myisam?
What is mysql in linux?