selecte * from temp as temp
sort by no
其中第二句是在程序中执行,通过一个Combox下拉框进行排序
~~~~~~~~~~~~~~~~~~~~~~~~~什么叫“第二句是在程序中执行”是sort by no吗?
那样的话是错了你必须selecte * from temp as temp sort by no整局执行。
用order by子句限定的query有可能返回只读results,建议用TupdateSQL
or you can create the index for the fields which appeared in
your sort sub-clause,then set the 'index'property of Tquery.