oracle 函数问题 表中有字段a,b,均为number类型,想在select中返回一列c,如果a=b=1,则返回的c列为1, 否则返回的c列为a+b 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select (case when a=b and a=1 then 1 else a+b end) as cfrom --searchselect case when a = 1 and b = 1 then 1 else a + b end from tb--updateupdate tbset c = (case when a = 1 and b = 1 then 1 else a + b end ) select (case when a=b and a=1 then 1 else a+b end) as c from select (case when a=b and a=1 then 1 else a+b end) as c from 请问,Orcle和MSSQL的restore有什么不同? 求存储过程 请教一个触发器从Sql server 到Oracle的转化问题 求一条sql语句 oracle已经删除怎么windows 服务中还有oracle的服务 如何在Oracle 10g中查询指定数据表的访问用户或角色及其有效权限? 存储过程问题求助高手 count函数为什么比运行清单还慢? [请教]SQL语句转换为Oracle语句!!!! 在使用pro*c的时候,有没有碰到过这种问题,高手请进 存储过程中以数组作为参数 请教,如何按下方式更新数据?
from
--search
select case when a = 1 and b = 1 then 1 else a + b end from tb
--update
update tb
set c = (case when a = 1 and b = 1 then 1 else a + b end )
from
from