MySQL order by problems

前端 未结 2 1319
忘掉有多难
忘掉有多难 2020-12-22 05:20

I have the following codes..

echo \"
<
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 05:40

    I got it working (without ORDER BY loc_id ASC) as long as I set phpMyAdmin operations loc_id ascending. But whenever I delete all data, it goes back as loc_id descending so I have to reset it. It doesn't entirely solve the problem but I guess this is as far as I can go. :)) I just have to make sure that the table column loc_id is always in ascending order. Thank you everyone for your help! I really appreciate it! But if you have any better answer, like how to set the table column always in ascending order or better query, etc, feel free to post it here. May God bless you all!

提交回复
热议问题