sql函数 update asetas=decode((as-6),1,as,0) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也可以用update a set as=0 where er<=6 sorry,我漏了signupdate asetas=decode(sign(as-6),1,as,0) sign(num):if num>0 then return 1if num<0 then return -1if num=0 then return 0 update table set as=0 where er<=6; 简单的问题不要想的太复杂,呵呵~update tab set as =0 where as<=6 create table temp1 asselect er, decode(sign(as-6),1,as,0) as from table1 如何把远程服务器Oracle数据库导入到本机Oracle数据库中? oracle存储过程 外层为什么引用不到内层表? 新人~~求学习Oracle的步骤 (回贴有分) 请教大家个sql问题!!!!!! 请问什么是造成数据库数据不一致的根本原因???(太感谢了!) 请教高手,急!! function中使用select 查找记录,结果为空时报错?? 在oracle9i里面,有没有图形化的工具创建表和视图啊,叫什么名字啊? 弱智问题:怎样建立函数? oracle登录问题 求解:如果写大于某一个带有小时要求的时间的where语句,多谢!!!
update a
set
as=decode(sign(as-6),1,as,0)
if num>0 then
return 1
if num<0 then
return -1
if num=0 then
return 0
select er, decode(sign(as-6),1,as,0) as
from table1