Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: how to use DBI connect to >1 database

by ikegami (Patriarch)
on Sep 28, 2023 at 17:24 UTC ( [id://11154735] : note . print w/replies, xml ) Need Help??


in reply to Re^2: how to use DBI connect to >1 database
in thread how to use DBI connect to >1 database

yet it ALSO appears connected to others.

No, it doesn't. You just connect to one server, and pass it the SQL to execute.

It makes me wonder why I have to specify a database when making a connection?

If you don't specify the server, how would it know to which server to connect and to send the SQL?

  • Comment on Re^3: how to use DBI connect to >1 database