Reputation: 539
I have a MySQL table with the field "date". I am trying to order the entries by date, and if more entries are from the same day, then i need to order them by a timestamp. The problem is my "date" field only stores the day, and i do not have a timestamp field and i don't want to add it, since the table is already populated with a few thousands of entries.
Is it possible to order them by a timestamp, i don't know, maybe from sql dictionary or something?
Thank you.
Upvotes: 0
Views: 99
Reputation: 12189
Is it possible to order them by a timestamp, i don't know, maybe from sql dictionary or something?
No, it's not possible. You can't sort by something that doesn't exist.
Upvotes: 1