Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么是参数化选择?PL/SQL_Sql_Oracle_Function_Plsql - Fatal编程技术网

什么是参数化选择?PL/SQL

什么是参数化选择?PL/SQL,sql,oracle,function,plsql,Sql,Oracle,Function,Plsql,我们需要在pl/sql函数中添加一个参数化的select。但我不知道什么是参数化选择: 您可能正在谈论在PL/SQL代码的SQL语句中使用绑定变量,如下所示: declare anumb number:=1; ..... begin select .... into .... from your_table where a_column=anumb .....; .... end; 在这个示例代码中,select可以称为“参数化”,因为它在SQL中使用了前

我们需要在pl/sql函数中添加一个参数化的select。但我不知道什么是参数化选择:

您可能正在谈论在PL/SQL代码的SQL语句中使用绑定变量,如下所示:

declare
anumb     number:=1;
.....
begin
   select ....
   into ....
   from your_table
   where a_column=anumb .....;
   ....
end;
在这个示例代码中,select可以称为“参数化”,因为它在SQL中使用了前面的变量集anumb'也可以是传递给函数或过程的参数。 最后,当主题中有PL/sql时,为什么要用sql server标记您的任务