Suppose I have this two queries:
SELECT * FROM payments WHERE created < DATE '1967-01-01'
SELECT * FROM payments WHERE created < '1967-01-01'
And created
field is a date field.
I would like to know if in query 2) is comparing two dates like in 1) and is not comparing two strings lexicographically.
Thanks!
Mysql treats both formats as dates, not as strings.
As mysql manual on date and time literals say: