2006年05月27日
DBI/DBD-pgサンプル(disconnect)
- ikepon
- 2006年05月27日
- コメントする
- トラックバック (21)
- カテゴリー:Perl
disconnect関数に関して説明します。
使用するにはDBIをuseします。
use DBI;
次のファイルをdisconnect.plという名前で保存します。
use DBI;
$dbh = DBI->connect("dbi:Pg:dbname=dbd_test;host=localhost;port=5432", "dbd_test_user", "password2");
$dbh->disconnect();
実行結果は、次の様になります。
> perl disconnect.pl
Trackback on "DBI/DBD-pgサンプル(disconnect)"
以下21件のトラックバックはこのページのエントリー"DBI/DBD-pgサンプル(disconnect)"を参照しています。
このエントリーのトラックバックURL:
» cool site
- 2006年06月01日 09:10
- from cool site
check this out: http://www.aspectinformation.info/ 7 [続きを読む]
» connorreynolds.com
- 2006年06月29日 15:14
- from connorreynolds.com
If time flies when you're having fun, it hits the afterburners when you don't th... [続きを読む]
"DBI/DBD-pgサンプル(disconnect)"へのコメントはまだありません。