MySQL Forums
Forum List  »  Newbie

Re: How to query for rec's WHERE >= $start_date ?
Posted by: Peter Brawley
Date: December 29, 2017 12:36PM

> $start_date = "01/15/2018"

No, that's the oddball US date format. MySQL needs "2018-01-15".

> WHERE DATE(tbl-1.dates)

Do not use illegal chars like the minus sign in identifier names. Before you get rid of it, you will have to surround all references to that name with backticks, viz `tbl-1`.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to query for rec's WHERE >= $start_date ?
December 29, 2017 12:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.