求sql语句 --如果是更新update 表 set a=a+c*5 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case when c=0 then awhen c=1 a+5when c=2 a+10else aend from 表 select a=case when c=0 then a when c=1 then a+5 else a+10 end from t select case when c=0 then awhen c=1 then a+5when c=2 then a+10else a end from 表 case when then select a=case c when 0 then a+0 when 1 then a+5 when 2 then a+10 endfrom (select a=10,c=0 union all select a=20,c=1 union all select a=30,c=2) b select a+c*5 from 表 最好 请问数据库脱机是什么意思 索引用在哪个场合? SQL Server 移植到 Mysql 如何将 N 个select * from t语句合并为一个,显示一张表里? 高手请进,如何通过SQL语法生成一个和已经存在的表结构一样的临时表? SQL存储过程处理中,有没有检查是否已有返回结果集的方法 SQL,鸟问题! sql2005 reporting service报错 请问应该怎么才能在系统表上建立触发器?[分不够再加] 关于存储过程中付值的问题 !!!奇怪的问题 OPENROWSET!!! 有没有这样的select语句,大家帮帮忙
when c=1 a+5
when c=2 a+10
else a
end from 表
when c=1 then a+5
when c=2 then a+10
else a end from 表
case when then
when 1 then a+5
when 2 then a+10
end
from (select a=10,c=0 union all
select a=20,c=1 union all
select a=30,c=2) b
select a+c*5 from 表
最好