咋办?表中有三个字段存储的是编号,但是在DBGridEh中显示数据记录时这三个字段要显示其名称,查询语句是动态写的(不是在属性设计器里选择字段)

解决方案 »

  1.   

    查询语句是动态创建的,可以使用OnGetText事件吗?怎样使用?
      

  2.   

    我把TADOQuery、TDataSource等控件都放到了通用数据库模块datamodule1
    查询语句如下:
    直接在程序里写: select * from table1
    或者直接在程序里写: select field1,field2,field3......from table1 
     
      

  3.   

    select table2.field2name from table1, table2 where table1.field1 = table2.field1
      

  4.   

    没明白,是不是字段是英文或拼音,要显示汉字?如果是这样,使用别名:select 编号=bianhao from 表...