Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 different table present in MYsql?

3 Answers  


Explain the different types of mysql joins.

0 Answers  


What is difference b/w composit key n primary key and forigion key?

4 Answers  


What is the use of i-am-a-dummy flag in mysql?

0 Answers  


how to repair a table in mysql?

2 Answers  


How do I start mysql from command line?

0 Answers  


how you will show all records not containing the name "sonia" and the phone number '9876543210' order by the phone_number field.

0 Answers  


Can we save images in mysql database?

0 Answers  


What is the purpose of using ifnull() function?

0 Answers  


What is triggers and how it can be used in mysql?

0 Answers  


Write a query to find duplicate rows in table?

0 Answers  


What is difference between microsoft sql and mysql?

0 Answers  


Categories