Re: DBI MySQL Use Another DB Without Disconnecting
- From: xhoster@xxxxxxxxx
- Date: 28 Jul 2005 23:06:09 GMT
"afrinspray" <afrinspray@xxxxxxxxx> wrote:
> Is there a way to change the database in a DBI mysql connection without
> disconnecting? For example, in PHP you'd just say
>
> mysql_select_db("db_name_here", $dbh)
>
> I looked through the DBI code on cpan and I didn't see anything, but
> I'm falling asleep here at work, so maybe I missed it. :)
$dbh->do("use $db_name_here");
Unfortunately, placeholders don't work in this context.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- DBI MySQL Use Another DB Without Disconnecting
- From: afrinspray
- DBI MySQL Use Another DB Without Disconnecting
- Prev by Date: Re: DBI MySQL Use Another DB Without Disconnecting
- Next by Date: Re: Help with split using multiple delimiters
- Previous by thread: Re: DBI MySQL Use Another DB Without Disconnecting
- Next by thread: glob question
- Index(es):