Skip to main content

Openings for different technoogies.

What is the purpose of using the TIMESTAMP data type?

 A TIMESTAMP data type is used to store the combination of date and time value which is 19 characters long.

The format of TIMESTAMP is YYYY-MM-DD HH:MM: SS. It can store data from ‘1970-01-01 00:00:01’ UTC to ‘2038-01-19 03:14:07’ UTC. By default, the current date and time of the server get inserted in the field of this data type when a new record is inserted or updated.

Comments

Popular posts from this blog

Openings for different technoogies.

 

What is the relation between Classes and Objects?

  They look very much same but are not same. A class is a definition, while an object is an instance of the class. A class is a blueprint while objects are actual objects existing in the real world. Suppose we have a class Person which has attributes and methods like name, age, height, weight, color etc. Class Person is just a prototype, now we can create real-time objects of class Person. #Example:   Ajay  is real time object of class  Person , which have name=Ajay, age=23, height=170cm, weight=60kg and color=black etc. Class A way to bind data and associated functions together. Class have many objects. Class is a template for creating objects. It is logical existence. Memory space is not allocated, when it is created. Definition (Declaration) is created once. Class is declared using "class" keyword. Object Basic runtime entity in object oriented environment. Object belongs to only class. Object are a implementation of class. It is physical existence. Memory space i...