如果我创建了2个显式连接到同一个数据库,我可以构建一个查询,它将使用联合中的两个连接,以便每个查询同时运行吗?
EXEC SQL CONNECT :uName1 IDENTIFIED BY :passwd1 AT :DB_NAME1 USING :dbString1
EXEC SQL CONNECT :uName2 IDENTIFIED BY :passwd2 AT :DB_NAME2 USING :dbString1
EXEC SQL at :DB_NAME1 SELECT .....
UNION
EXEC SQL at :DB_NAME2 SELECT .....