I'm using db2 and SQuirreL SQL
I'm trying to create a stored procedure with a simple select statement inside of it. When I omit the select statement in the following below and run the code, the procedure is created. Also this procedure can be dropped and called.
CREATE PROCEDURE test_procedure
LANGUAGE SQL
BEGIN
END
When I add in the select statement, I get Error: DB2 SQL Error: SQLCODE=-102, SQLSTATE=42601,...
CREATE PROCEDURE test_procedure
LANGUAGE SQL
BEGIN
SELECT column_name FROM table_name
END
If you go to IBM iseries information center is says:
SQL0104 SQLCODE -104 SQLSTATE 42601
Explanation: Token &1 was not valid. Valid tokens: &2.