你在Query上双击,选择你的那个boolean字段,在它的
procedure TForm_dxyckcx.TuxedoQuery1kxsxGetText(Sender: TField;
  var Text: String; DisplayText: Boolean);
begin
    if sender.AsString='00' then text:='交纳代销押金';
    if sender.AsString='01' then text:='交纳代收押金';
    if sender.AsString='02' then text:='退还代销押金';
    if sender.AsString='03' then text:='退还代收押金';
end;

解决方案 »

  1.   

    比如有一个表:
    table1(id ,state ,name)
    可以这样:
    select '正常' as Astate,name,id  from table where  state = true
    union
    select '不正常' as Astate,name,id  from table where  state = false
      

  2.   

    用select 好象实现不了,但可以在dataset.fields里增加字段来实现显示
      

  3.   

    比如有一个表:
    table1(id ,state ,name)
    可以这样:
    select '正常' as Astate,name,id  from table1 where  state = true
    union
    select '不正常' as Astate,name,id  from table1 where  state = false
      

  4.   

    Oracle:select Decode(YourField,TRUE,'正常','不正常') from YourTableSQL Server:select Case Yourfield 
                 when TRUE: '正常'
                 when FALSE: '不正常' from YourTable本地数据库:N/A