select 标题       时间       图片 from   table1 where  (图片=1 or 图片 = 2)

解决方案 »

  1.   

    <img src='images/img-<%# Eval("状态")%>.gif' />
      

  2.   

    select   
    标题, 时间  ,  
     
    case 状态
     when  1 then "图片1"
     when  2 then "图片2"
    else  "默認圖片"   end   as  状态from       table1  
      

  3.   

    select       
       标题,时间, 
       case 状态 
           when "1"   then   "图片1" 
          when "2"   then   "图片2" 
       end as 图片
    from table1