帮我看看这个Sql server语句如何转成Oracle语句!

pengjiangping 2003-01-10 09:56:34
if not Exists(select * from Counter where KeyValue=vcKeyValue) then
insert into Counter(KeyValue) Values(vcKeyValue)
else
select isnull(CountValue,0) into iCountValue from Counter where
KeyValue=vcKeyValue;
end if;
关键是不知道Exists和isNull在oracle中对应的函数是什么,
  另外想问一下,在oracle中如何查到这些函数的帮助
  我用的是oracle8.05
...全文
40 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pengjiangping 2003-01-10
  • 打赏
  • 举报
回复
谢谢两位的指教
wanghai 2003-01-10
  • 打赏
  • 举报
回复
isNull--nvl
bzszp 2003-01-10
  • 打赏
  • 举报
回复
select count(1) into t_num from Counter where KeyValue=vcKeyValue;
if t_num =0 then
....
else
select nvl(CountValue,0) into ...
end if;

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧