in reply to DBI sanity check

One way is to use any of the SQL::Statement DBDS - AnyData, CSV, DBM, etc. with the new IMPORT() function which allows heterogeneous joins across DBMS types. For example:
my $csv_dbh = DBI->connect( 'dbi:CSV...); my $ora_dbh = DBI->connect( 'dbi:Oracle...); my $fir_dbh = DBI->connect( 'dbi:Firebird...); my $ora_sth = $ora_dbh->prepare(...); my $fir_sth = $fir_dbh->prepare(...); my $csv_sth = $csv_dbh->prepare(" SELECT $cols FROM IMPORT(?) AS T1 NATURAL JOIN IMPORT(?) AS T2 ... "); $csv_sth->execute( $fir_sth, $ora_sth );
The syntax for the join must follow the SQL::Statement rules, while the two statement handles follow the syntax rules of the respective DBMSs they query.

Replies are listed 'Best First'.
Re^2: DBI sanity check
by mring (Initiate) on Nov 10, 2005 at 16:39 UTC
    Thank you both for your answers, I will dig in and start reading up on both options.