1.

What are the Temporal Data Types in MySQL?

Answer»
TYPE NameMeaning
DATEA date value, in ' CCYY-MM-DD ' Format
TIMEA Time value, in ' hh : mm :SS ' format
DATETIMEDate and time value, in ' CCYY-MM-DD hh : mm :ss ' format
TIMESTAMPA timestamp value, in ' CCYY-MM-DD hh : mm :ss ' format
YEARA year value, in CCYY or YY format

Example: To select the records with an Order Date of "2018-11-11" from a table:

SELECT * FROM Orders WHERE OrderDate='2018-11-11'


Discussion

No Comment Found