select * from table1 case when sex='man' then 男人 when sex='women' then '女人' when sex='middle' then '人妖' end where .....

解决方案 »

  1.   

    不好意思,语法错误。
    select *, case when Flow_type=0 then '入库' else '出库' end as myFlow_type from flow where ....
      

  2.   

    不好意思,语法错误。
    select *, case when Flow_type=0 then '入库' else '出库' end as myFlow_type from flow where .....
      

  3.   

    datagrid_onItemDataBound()
    {
      if(e.Item.ItemType.ToString() != "Header")
      {
        if(e.Item.Cells[列索引].Text == "1")
        {
           e.Item.Cells[列索引].Text = "类型一";
        }
        else
        {
           e.Item.Cells[列索引].Text = "类型二";
        }
      }
    }
      

  4.   

    to coolnick:十分谢谢.你的方法很好用,以后请多指教.
       to alieneagle:我还想请教你一下,你教我的代码中"列索引"怎么得到呢?因为我不是输出所有的列,所以如果数据字段很多,我无法确定列号,请指教
      

  5.   

    就是用“myFlow_type”字段来引用嘛