0
I have an sql table that will contain appointment, date and time. I keep the three based on ID. I have a question about the date and time
id = 0; data 28/08/2018 - 13:11h id = 1; data 26/08/2018 - 17:10h id = 2; data 25/08/2018 - 11:15h
I want to organize the table this way:
id = 0; data 25/08/2018 - 11:15h id = 1; data 26/08/2018 - 17:10h id = 2; data 28/08/2018 - 13:11h
Because when I schedule a time and a date, I might have a notion to set the next alarm based on id 0. I’m having trouble with this, because when I save a date and a time, I don’t know which to call
I didn’t understand your question... the time is not associated with a specific ID? How do you plan to organize times by different Ids?
– João Martins
Actually I wanted to put the dates in the DESC form on the table, so that the date would always be close to the current date, how to do this?
– user123503
instead of changing the id, because you don’t create a field for exhibition order?
– rLinhares
Could you exemplify? I’m having doubts about how to do this
– user123503