干吗非要要求在表里面排在前排在后呢
你只需要在前面界面上显示的时候有排序就可以了.
select id,name form tbname order by id Asc(desc 降序)