MySQL sort by a column by default in phpMyAdmin

后端 未结 2 621
慢半拍i
慢半拍i 2021-01-20 05:17

I added a new index in my table and now phpMyAdmin is sorting the rows by that column by default. How do I make phpMyAdmin sort the rows by the id column instea

2条回答
  •  孤街浪徒
    2021-01-20 05:38

    You can resolve this issue by adding default order by to the tableusing the alter table query.

    QUERY: alter table links order by id;

    If you not specify any order by clause in where clause, then rows will sort by default "id" column.

提交回复
热议问题