Calling a stored procedures within the same schema from a SP
问题 How can I call a stored procedure in the same schema without specifying the full schema name when coding another stored procedure. These are SQL PL procedures within DB2. First SP: CREATE PROCEDURE MYSCHEMA.SP_TEST LANGUAGE SQL BEGIN END Creating a SP calling this SP directly without a schema name causes a compilation error: CREATE PROCEDURE MYSCHEMA.SP_TEST2 LANGUAGE SQL BEGIN CALL SP_TEST(); END It will throw: No authorized routine named "SP_TEST" of type "PROCEDURE" having compatible