>>---EXEC SQL---DECLARE db_name---DATABASE---END-EXEC---->
You must DECLARE db_name before using a CONNECT ... AT db_name statement.
You cannot use DECLARE DATABASE with EXECUTE IMMEDIATE or with PREPARE and EXECUTE.
Comments:
You must DECLARE db_name before using a CONNECT ... AT db_name statement.
You cannot use DECLARE DATABASE with EXECUTE IMMEDIATE or with PREPARE and EXECUTE.