我在桌子上有三次
1467707400
1468211460
1468233180
我的查询是按asc
命令结果
02:00 pm
10:01 am
04:03 pm
查看结果(PHP日期(' h:i a',1468233180))不是按顺序
QUERY
SELECT start_time FROM my_table ORDER BY start_time ASC
答案 0 :(得分:0)
1467707400
1468211460
1468233180
是
07/05/2016 @ 8:30am (UTC) - equivalent to your 2:00pm (India, UTC +5:30)
07/11/2016 @ 4:31am (UTC) - equivalent to your 10:01am (India, UTC +5:30)
07/11/2016 @ 10:33am (UTC) - equivalent to your 4:03pm (India, UTC +5:30)
所以你得到的顺序是正确的。