ADOQery.sql.add('select * from db where A= 'a');
我如何得知A字段的前一个字段的值??后一个字段的值呢?
A字段的地址又是如何得到呢?

解决方案 »

  1.   

    ADOQery.sql.add('select * from db where A = 'a' or B = 'a');
    我检索出来符合条件的值有可能是字段A,或者是字段B,我不知道如何知道是字段A还是字段B,并且如果是字段A,我需要找出A旁边的字段值,如果是字段B,我需要找出B旁边的字段值,不知道怎么做?
      

  2.   

    第一种办法:select 'a',xtype 
    from sysobjects 
    where name like 'sys%' 
    union all 
     select 'b',name from sysobjects where xtype like 'u'第二种办法
    select xtype//字段名字 
    from sysobjects//表名字 
    where name like 'a'//包含的字 
    union all 
     select name from sysobjects where xtype like 'a'