MySQL Insert Date and Time
Inserting date and timestamp values using standard string literals or system functions like NOW().
CREATE TABLE audit_records (
record_id INT AUTO_INCREMENT PRIMARY KEY,
event_description VARCHAR(100),
event_time DATETIME
);
INSERT INTO audit_records (event_description, event_time)
VALUES
('Manual Backup Completed', '2026-09-01 14:30:00'),
('System Health Check', NOW());Query OK, 2 rows affected (0.01 sec)