>>---EXEC SQL---DECLARE db_name---DATABASE---END-EXEC---->
|db_name||A name associated with a database. It must be an identifier and not a host variable. It cannot contain quotation marks.|
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.