Hi ,
I was new to Db2 .
I was trying to create my first DB2 Stored procedure
and I am getting the below error message
Expected tokens may include: "JOIN <joined_table>" . SQLSTATE=42601
SQL0104N An unexpected token "END-OF-STATEMENT" was found following "END". Expected tokens may include: "JOIN <joined_table > ".
Can you please help me to resolve.
I was new to Db2 .
I was trying to create my first DB2 Stored procedure
and I am getting the below error message
Expected tokens may include: "JOIN <joined_table>" . SQLSTATE=42601
SQL0104N An unexpected token "END-OF-STATEMENT" was found following "END". Expected tokens may include: "JOIN <joined_table > ".
Code:
create or replace procedure test(EMPNO CHAR(10), OUT EMPNAME VARCHAR(16))
LANGUAGE SQL
BEGIN
DECLARE name1 CHAR(1000);
-- set name1='Testing';
-- set EMPNAME = EMPNO ;
END
Comment