Answer the question
In order to leave comments, you need to log in
Why is a date that has not yet arrived (2115-12-30 19:58:20) when ORDER BY does not display the date DESC first?
Under certain conditions, I write the date NOW() + INTERVAL 100 YEAR so that the string is always the first (and so that it is convenient to return it to the normal form str_replace-uv 21 by 20).
But why is the date that has not yet arrived (2115-12-30 19:58:20) when ORDER BY does not display the date DESC first? Broke his head.
Answer the question
In order to leave comments, you need to log in
Specify the version and brand of SQL, how exactly is the date stored - as a timestamp or just a string?
У timestamp, может быть проблема переполнения
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question