Perl 使用 DBI 连接到数据库

2015-12-14 0 895
Perl 使用 DBI 连接到数据库
#!\usr\bin\perl

use warnings;
use strict;
use DBI;
my $dbh=DBI->connect('dbi:mysql:test','root','password') || die "Error opening database: $DBI::errstr\n";
print "Hello\n";
$dbh->disconnect || die "Failed to disconnect\n";
print "Goodbye\n";

遇见资源网 perl Perl 使用 DBI 连接到数据库 http://www.ox520.com/13194.html

上一篇:

已经没有上一篇了!

下一篇:

已经没有下一篇了!

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务