存储过程中是不是也有select case? case 只在9i以上的版本中好用,9i以下的版本不支持的,在存储过程中应该也是可以用的./ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用Decode函数SELECT product_id, DECODE (warehouse_id, 1, 'Southlake', 2, 'San Francisco', 3, 'New Jersey', 4, 'Seattle', 'Non-domestic') "Location of inventory" FROM inventories WHERE product_id < 1775; 晕啊我想要的是select case icase 0case 1case 2end case;这样的,oracle查询语句里面的case ,decode ...就不要说了撒 case value when expression1 then statement1;end case; 9i中加入了SELECT CASE,而8i中如果有比较大段的选择一般都用if elseend if.或ifelsifelseend if; imp导入操作的日志存放在哪里? 含有lob,如何在INTERVAL分区中将lob和data分开循环存储? 关于acess数据导入oracle报错溢出的问题??? 这东西能用子查询查出来吗? 急需一 select 写法 急!!!!!!!!!!!!! 請問 表的连接问题 问题 union语句如何ordry by排序??高手急救啊! 用sql server产生的sql语句,怎么才能在sql plus中直接运行? 如何求两个Date类型的变量的之间的时间差。 请教一个SQL的问题??
DECODE (warehouse_id, 1, 'Southlake',
2, 'San Francisco',
3, 'New Jersey',
4, 'Seattle',
'Non-domestic')
"Location of inventory" FROM inventories
WHERE product_id < 1775;
select case i
case 0
case 1
case 2
end case;
这样的,
oracle查询语句里面的case ,decode ...就不要说了撒
when expression1 then
statement1;
end case;
if
else
end if.
或
if
elsif
else
end if;