mysql datetime

Solutions on MaxInterview for mysql datetime by the best coders in the world

showing results for - "mysql datetime"
Luna
25 Sep 2019
1date("Y-m-d H:i:s")
Yassine
03 Jan 2018
1SELECT NOW();
2It returns current date and time.
Lisa
14 Nov 2019
1-- MySQL DATE Format: 'YYYY-MM-DD'
2-- MySQL DATETIME Format: 'YYYY-MM-DD hh:mm:ss'
Emil
10 Jul 2018
1DATE : YYYY-MM-DD format
2DATETIME : YYYY-MM-DD HH:MM:SS format
3TIMESTAMP : X s from 1970 format
4TIME : HH:MM:SS format
Jacopo
14 Jan 2018
1INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');
Luna
07 Sep 2020
1
2        
3            
4        
5     CREATE TABLE people (
6    id INT AUTO_INCREMENT PRIMARY KEY,
7    first_name VARCHAR(50) NOT NULL,
8    last_name VARCHAR(50) NOT NULL,
9    birth_date DATE NOT NULL
10);
similar questions
queries leading to this page
mysql datetime