索引的问题(5分)

K

kscitic

Unregistered / Unconfirmed
GUEST, unregistred user!
我是以字段ID(integer型)进行排序的,具体是从[1~10000000]这样编排序号的,但是
显示的时候一直是以1,10,100,101,102,103,104,105,106,107,108,109,11,110,
111。。。。。以此类推,但是我需要的是1,2,3,4.....我并不是用SELECT打开的,试问在表中
索引应如何建立?我是直接用TABLE控件打开表的。
 
AdoTable
IndexName 设为 aa 你可以自己起
IndexFieldName 为 id
 
select * from table order by id,length(id)
 
我回去试试。
 
此贴已结
 
顶部