Mysql date field
Mysql date field help you to create the data field and their respective data type.
Understanding with Example
The Tutorial illustrate an example to create date field in Mysql. The create table statement is used to create a table 'employee2' with field name and date respectively. The data type used for date is date data type.
Query for creating date field:-
Query for insertion of data:-
The insert into add the records value into the table 'employee2'.The format of date date type is 'YYYY-MM-DD'.
Query for viewing data of the table:-
To view a table, we use select Query to display the records from a table 'employee2'.