Sql oracle apex输入错误

Sql oracle apex输入错误,sql,oracle,oracle-apex,Sql,Oracle,Oracle Apex,我得到这个错误: ORA-06550:第4行第6列: PLS-00103:在预期以下情况时遇到符号“&”: hello i am trying to read something from the keyboard using the "&". like this: declare x number; begin x := &enter_value; dbms_output.put_line(x*2); end; / (+case mod new不为空 继续平均计数当前存在最

我得到这个错误:

ORA-06550:第4行第6列: PLS-00103:在预期以下情况时遇到符号“&”:

hello i am trying to read something from the keyboard using the "&". like this:
 declare
x number;
begin
x := &enter_value;
dbms_output.put_line(x*2);
end;
/
(+case mod new不为空
继续平均计数当前存在最大最小优先sql STDEV
对所有合并时间时间戳间隔执行求和方差
日期
管

绑定变量语法取决于您使用的应用程序。您尝试使用的符号和语法(&enter_值)与SQL Developer关联,而不是与SQL Workshop关联

如果您将代码复制并粘贴到SQLDeveloper中,它应该可以工作。(注意:有时您必须将其用引号括起来,例如
“&输入值”


我不知道如何在SQL Workshop中使用替换字符串。

您是在使用应用程序生成器还是在Oracle Apex中使用SQL Workshop?我使用的是SQL WOKShop&它不是PL/SQL语法的一部分,通常用于提供替换字符串(例如,您可能在Apex应用程序或SQL*Plus脚本中使用
&ITEMNAME.
)。我认为SQL Workshop没有意识到这一点。
   ( - + 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 specifi


2. x number;
3. begin
4. x := &enter_value;
5. dbms_output.put_line(x*2);
6. end;