我的字段有两个
 jh                  sj
  jh:x8-1-2          ....
  jh:x5-8-4          ....         
  jh:x5-87-5         ....我想按字段jh排序,请问如何实现 

解决方案 »

  1.   

    select * from 表 order by jh
      

  2.   

    adq.Close;
    adq.SQL.Clear;
    adq.SQL.Text:='select  * from  jh order by jh';
    adq.Open;
    adq.Close;
    Application.MessageBox('排序成功','操作提示');
      

  3.   


    把最后一句adq.Close; 去掉
      

  4.   

    adq.Close; 
    adq.SQL.Clear; 
    adq.SQL.Text:='select  * from  jh order by jh'; 
    adq.Open;  
    Application.MessageBox('排序成功','操作提示');
      

  5.   

    jh字段里面字母全是大写的 并且是存储类型为文本类型  用order by jh 就是排不序
    我也不知道怎么回事儿
    order by 字段  这个语句是不是用于数字排序的啊
      

  6.   

    你是想显示的时候排序呢,还是让数据库中的数据排序呢,order by应该没有问题呀