请问我要把这个1500替换到300000 上面这句话应该怎么改?

解决方案 »

  1.   

    select top 4 id,uid,case when type=1 then amount/200 end as amount,type,text,time
      

  2.   

    select top 4  * ,case  when type=1  then amount/200 end as 字段名 from 表名
      

  3.   

    select top 4 id,uid,case when type=1 then amount/200 end as amount,type,text,time
    from T_GYincome order by amount desc
      

  4.   

    就是在 type=1的时候 把amount/200  然后再按照amount排序
      

  5.   

    select id,uid,case when type=1 then amount/200 else amount end as amount1,type,text,time order by amount1