在调用
$dbh->disconnect
之前,我需要分离已附加的数据库吗?如果不分离,会有问题吗?use DBI;
my $dbh = DBI->connect( "DBI:SQLite:dbname=my_db_1", ...
$dbh->do( "ATTACH DATABASE 'my_db_2' AS data" );
...
$dbh->do( "DETACH DATABASE data" );
$dbh->disconnect;