I have created below-mentioned procedure in Oracle. It compiles but gives a warning sayin "execution completed with warning"
create or replace
PROCEDURE check_upc
(
upc_id1 IN VARCHAR,
upc_id2 IN VARCHAR,
upc_id3 IN VARCHAR
)
IS
BEGIN
insert into testing2 SELECT upc_id1,upc_id2 from dual;
END;
But when i change the SQL statement to
insert into testing2 SELECT upc_id1,upc_id2,upc_id3 from dual;
It compiles without any warning.
Basically, I am supposed to run a long code (~100 line) for 10 combinations of UPCs (parameter in this procedure), for which I'll be replacing the above-mentioned SQL code with my actual code. But, it is failing for this basic insert statement.
Thanks in advance.
user_errorsview to see what the actual compilation errors are. Some clients also have ashow errorscommand which just does that for you.testing2and the full text of the warning. When I tested it with a 2-columntesting2table, the first version compiled but PL/SQL Developer warned me Hint: Parameter 'upc_id3' is declared but never used in 'check_upc'. (This is a feature of PL/SQL Developer though, and not a PL/SQL compiler message. Are you using PL/SQL Developer?) Changing it to the invalid 3-column insert failed compilation with ORA-00913: too many values.