Perl DBI Programming Reading notes, in the original text see:http://www.ibm.com/developerworks/cn/linux/l-cn-perldbi/In order to communicate with the database, the Perl community developed a unified Database communication interface module: DBI. DBI,
The most commonly used package for Perl access to a database is DBI, which can be found in www.cpan.org. Also need to install the corresponding database driver package, such as Dbd::mysql, Dbd::oracle, dbd::sybase or DBD::ODBC.First, the basic
Source Text Address: http://blog.csdn.net/like_zhz/article/details/5441946Different relational models of DBI and DBD:##########################################################################The portable DBI Method:Connect establishes a connection
A Perl application database uses the DBM package configured by itself to create and operate a database, therefore, the DBM package and other similar packages can be considered as a database extension. The other is to use the DBI package or similar
Practical Extraction and Report Language
Perl was originally designed by Larry Wall in December 18, 1987. Perl uses the features of C, sed, awk, shell scripting, and many other programming languages.
Perl is generally called the Practical
This article was reproduced from: http://blog.csdn.net/like_zhz/article/details/5441946##########################################################################The portable DBI Method:Connect establishes a connection to a database serverDisconnect
Using DBI, Perl makes it easy to connect to the MySQL database:
The code is as follows:
Copy Code code as follows:
#!/bin/perl
Use DBI;
# Connect to Target DBMy $dbh = Dbi->connect ("Dbi:mysql:database=eygle;host=localhost",
web| programs So far, we have written dbi scripts for command interpreters in a command-line environment, but DBI is useful in other environments, such as in the development of web-based applications. When you write a DBI script that can be invoked
One of the most important modules in Perl is the DBI module (Perl database Interface, DB interface). The DBI module provides a unified interface for many different databases. This interface makes it easy for Perl to manipulate the database. The
ByGeorgesTarbouriechWhataboutthisnicepair? MySQL is a relational database system (RDBMS). its homepage is www.mysql.com. It is released by GNUGPL for free. please read the copyright notice. It can work on many platforms, both as a server and a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.