How do I insert a field with current date and specific time?
My goal is to insert CURDATE() with a specific hour 17:30:00.
I tried like INSERT INTO table VALUES('', CURDATE(+ ' 17:30:00'))
but it doesn't work.
Try this -
CONCAT(CURDATE(), ' 17:30:00')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With