Re: Multiple DB access
Posted in 1997
Carlos Antonio Ruiz Gomez — — source: Informix-list mailing list archive (1991-1998)
> I am looking for a way, if at all possible, using a single 4gl program,
> to read a table from one Informix database and write to another Informix
> table sitting in a different db.
For Standard Engine I use the following commands:
DATABASE db1
SELECT * FROM table_bd1 INTO TEMP tmp_tablebd1 WITH NO LOG
DATABASE db2
-- Change database doesn't drop temp tables
INSERT INTO table_bd2 SELECT * FROM tmp_tablebd1
-------------------------
Carlos Antonio Ruiz G'mez
dmys2@colomsat.net.co
Santaf' de Bogot' D. C.
Colombia, Suram'rica