小编jas*_*eet的帖子

使用绑定变量

我们可以在程序或函数中的oracle中使用绑定变量吗?

我正在尝试更新我的过程中的绑定变量.我可以这样做吗?

if (condition) then
    :v_bind:=10;
end if;
Run Code Online (Sandbox Code Playgroud)

我可以在程序或函数中执行上述操作吗?


variable v_bind number; 
create procedure abc as v_one 
BEGIN 
  select count(a) into v_one from ab; 
  if(v_one<>0) then 
     :v_bind:=10; 
  end if; 
Run Code Online (Sandbox Code Playgroud)

我能做到吗?它向我展示了糟糕的变数v_bind

oracle bind-variables

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

bind-variables ×1

oracle ×1