ELIAHIM JEEVARAJ, March 15, 2018 - 5:46 pm UTC
I faced same error after adding set define on
Unsupported Command
ORA-06550: line 4, column 7:
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 specifi
Unsupported Command
March 16, 2018 - 1:20 pm UTC
Please show us all the code you executed. And tell us which environment you used (SQL Developer, SQL*Plus, Java, ...)
error with & in sql live
sowmya, August 04, 2023 - 6:16 am UTC
declare
v_name scott.emp.ename%type;
v_no scott.emp.empno%type := &v_no;
begin
select ename into v_name
from scott.emp where
scott.empno=v_no;
dbms_output.put_line('emp name:'||v_name);
end;
ORA-06550: line 3, column 30:
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
August 08, 2023 - 1:48 pm UTC
You can't use ampersand to accept user input in Live SQL. You need to replace &v_no with the value you want.