【发布时间】:2017-01-22 08:21:52
【问题描述】:
在上面的代码中,我将 schemaname 作为输入,并使用该输入连接到数据库。但在这种情况下,我输入的值不会被模式名采用。这就是输出和错误的方式:
declare schemaname varchar2(20);
exec :schemaname := XYZ;
BEGIN
end;
Error report -
ORA-06550: line 2, column 6:
PLS-00103: Encountered the symbol "" when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
ORA-06550: line 4, column 1:
PLS-00103: Encountered the symbol "CONNECT" when expecting one of the following:
任何人都可以建议如何使用 spool 使其工作
【问题讨论】:
标签: oracle function stored-procedures plsqldeveloper