Open adrianbrowning opened 4 months ago
SELECT NOW();
SELECT CURDATE();
SELECT DATE_ADD(NOW(), INTERVAL 1 DAY);
SELECT DATE_SUB(NOW(), INTERVAL 1 DAY);
SELECT YEAR(birthdate) FROM users;
SELECT MONTH(birthdate) FROM users;
SELECT DAY(birthdate) FROM users;
SELECT NOW();
SELECT CURDATE();
SELECT DATE_ADD(NOW(), INTERVAL 1 DAY);
SELECT DATE_SUB(NOW(), INTERVAL 1 DAY);
SELECT YEAR(birthdate) FROM users;
SELECT MONTH(birthdate) FROM users;
SELECT DAY(birthdate) FROM users;