I want to delete the column where date is passed
DELETE FROM voyages WHERE date < GETDATE()
but it doesn’t work, in B.D the date is in this form yyyy/mm/dd
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try below:
There is no function like
GETDATE()in mysql.If you mean by date passed is current date then use
curdate(), else put your date in place ofcurdate()