Perl数据库编程

Perl数据库编程

Connecting to a Database
     To read or write a plain file in Perl, you need to open a file handle. In the same way, to access a DBI database in Perl, you need to create a database handle. A database handle is what you use to maintain a connection to a database and is how you reference a particular connection to a database when you need to call functions or make SQL queries. It is possible to have more than one database handle in a program; this means you can connect to more than one database or even to more than one database server. The servers you connect to don't even need to be on the same continent! However, due to current connectivity restrictions, the database servers do need to be on the same planet. Database handles are normally referenced by a variable named $dbh or by something similar such as $dbh_accounting.
    从数据库编程上面看到的,其中有点不明白的就是:The servers you connect to don't even need to be on the same continent! However, due to current connectivity restrictions, the database servers do need to be on the same planet

    希望能有高手解释一下这话的意思,谢谢!3Q
就是一段幽默而已。
语意如下:

你想要连接的服务器甚至可以和你不在同一块大陆!不过,由于目前通讯技术的限制,数据库服务器需要和你在同一个星球上。
嘿嘿,那是我理解错了,我还以为是说perl可以连接任何地方的数据库,但是由于由于兼容性问题,只能在同一个局域网了,看来得再多多加强学习了,谢谢了flw


QUOTE:
原帖由 flw 于 2008-8-1 13:42 发表
就是一段幽默而已。
语意如下:

你想要连接的服务器甚至可以和你不在同一块大陆!不过,由于目前通讯技术的限制,数据库服务器需要和你在同一个星球上。

正确
了解了,谢谢大家啊
幽默,正如我悄悄地来,又如我悄悄地去~~