如何让用户在Oracle live server的PlSql中输入值?

如何让用户在Oracle live server的PlSql中输入值?,oracle,plsql,Oracle,Plsql,程序定义: 主程序: 如何为产品编号变量(&不起作用)输入值 我会收到错误: 过程已创建。 ORA-06550:第3行第31列: PLS-00103:在预期以下情况时遇到符号“&”: (+case mod new不为空) 继续平均计数当前存在最大最小优先sql STDEV 对所有合并时间时间戳间隔执行求和方差 日期 管 不幸的是,据我所知,答案很简单:你不能这么做。请回顾。作为问题模板,这将大大增加你获得满意答案的机会。在这种情况下,具体来说,你尝试了什么,得到了什么结果?谢谢,我编辑了帖子:Q

程序定义:

主程序:

如何为产品编号变量(&不起作用)输入值

我会收到错误:

过程已创建。
ORA-06550:第3行第31列:
PLS-00103:在预期以下情况时遇到符号“&”:
(+case mod new不为空)
继续平均计数当前存在最大最小优先sql STDEV
对所有合并时间时间戳间隔执行求和方差
日期
管

不幸的是,据我所知,答案很简单:你不能这么做。

请回顾。作为问题模板,这将大大增加你获得满意答案的机会。在这种情况下,具体来说,你尝试了什么,得到了什么结果?谢谢,我编辑了帖子:Q:我可以使用输入参数吗?a:不,我们没有运行时不支持输入参数。@APC是的,好的,谢谢你!
CREATE OR REPLACE PROCEDURE DISPLAY_PRODUCT(numpr IN integer,info OUT produit%ROWTYPE)
IS
BEGIN
   SELECT * INTO info FROM produit WHERE produit.numprod = numpr; 
END;
/
DECLARE
display produit%ROWTYPE;
product_number integer := &product_number ;
BEGIN
   DISPLAY_PRODUCT(product_number,display);
   DBMS_OUTPUT.PUT_LINE('numero : '||display.numprod || 'nom : '||display.nomprod);
END;
/
Procedure created.
   ORA-06550: line 3, column 31:
   PLS-00103: Encountered the symbol "&" when expecting one of the following:

   ( - + case mod new not null <an identifier>
   <a double-quoted delimited-identifier> <a bind variable>
   continue avg count current exists max min prior sql stddev
   sum variance execute forall merge time timestamp interval
   date <a string literal with character set specification>
   <a number> <a single-quoted SQL string> pipe
   <an alternatively-quoted string literal with character set specif