You will use the PHP PDO extension to connect to the DB2 database.
您将使用PHPPDO扩展连接到DB 2数据库。
To activate PDO, add the following two lines to your php.ini file.
为了激活pdo,将下面两行添加到php . ini文件。
Obtain a connection with the DB2 database using the PDO constructor
使用PDO构造函数获得与DB2数据库的一个连接
Connections are established by creating instances of the PDO base class.
连接是通过创建pdo基类的实例而建立的。
Set the cursor to be a scrollable cursor using the PDO::ATTR_CURSOR attribute
使用PDO::ATTR_CURSOR属性将游标设置为可滚动游标
Obtain a connection with the DB2 SAMPLE database using the PDO constructor.
使用PD o构造函数获得与DB 2SAMPLE数据库的连接。
PDO offers 3 different error handling modes to suit different styles of programming
PDO提供了3种不同的错误处理模式,以满足不同风格的编程
Php Data Objects (PDO) must be activated for Drupal 7 to install and run correctly.
PHP数据对象功能(PDO)必须被激活,Drupal7才能正常安装和运行。
It doesn't matter which driver you want to use; you always use the PDO class name.
不管您想要使用哪种驱动程序,您总是使用pdo类名。
The output from this command should include both the PDO and the pdo_informix modules.
此命令的输出应该包括PDO和 pdo_informix模块。
PDO is an acronym for PHP Data Objects. PDO is a lean, consistent way to access databases.
PDO是PHP数据对象的缩写, 是一种访问数据库的更便捷、安全的途径。
You've installed the PDO core; you need to enable it in your php.ini file for it to take effect.
您已经安装了pdo核心,为了使之生效,需要在php . ini文件中启用它。
The PDO constructor returns a DB2 database connection resource if the connection is successful.
如果连接成功,则PD o构造函数返回一个DB 2数据库连接资源。
This technique has two good alternatives: the PEAR DB module and the PHP Data Objects (PDO) classes.
该技术有两个很好的替代方案:PEARDB模块和PHPDataObjects (PDO)类。
This dramatic difference is due to the light-weight forward-only cursor that is the default in PDO.
之所以有这么大的差异,是因为在PD o中默认的游标是轻量级的只能向前移动的游标。
While this was not the driving reason for creating PDO, it certainly played a part in the design process.
虽然这不是创建PDO的直接原因,但是在设计过程中还是有一定影响的。
The anomalous Kuroshio transport has a close relationship with Pacific Interdecadal Oscillation (PDO) and ENSO.
黑潮输送异常和太平洋年代际振荡(PDO)及ENSO有着非常密切的关系。
The development of 1, 3-pdo, PTT and its products of Shanghai Petrochemical Co., Ltd. were introduced in detail.
详细介绍了中国石化上海石化股份有限公司1,3 - P DO、PTT及其产品的研发情况。
The PDO library: Find excellent documentation about all of these use cases for accessing databases in PHP and more.
PDO库:找到关于在PHP 中访问数据库的所有这些用例的优秀文档等资源。
It then creates a PDO connection to the MySQL database and formulates a query that returns a list of authors and titles.
随后创建一个到MySQL数据库的PDO连接并形成一个查询,该查询返回一个作者和标题列表。
The PDO class is intended to give you consistent access to native features of the database, with minimal interference.
PD o类意图为您提供对数据库本地特性的一致性访问,并减少干扰。
Each database driver that implements the PDO interface can expose database-specific features as regular extension functions.
每种数据库依靠特定的正则函数驱动P DO接口,能反映出数据库特征。
PDO (not to be confused with SDO) aims to provide a consistent API for the common capabilities found in most relational database APIs.
PDO(不要与sdo混淆)旨在为多数关系数据库api中的通用功能提供一个一致的API。
PDO stands for physical device object. The bus driver USES this object to represent the connection between the device and the bus.
PDO代表的物理设备对象。总线驱动使用这个对象来描绘介于设备和总线之间的连结。
At the top, you check to see if the user has posted this page to you; if so, you add a record to the database using the PDO library.
在顶部,您要检查用户是否已经将页面提交给您;如果提交,将使用PD o库将记录添加到数据库中。
Now that we have a handle on the background of databases-and-PHP, this is an ideal point to mention some of the design goals behind pdo.
至此我们已经掌握了数据库及PHP的背景知识,现在正好可以提及pdo背后的一些设计目标。
You can also use pecl install pdo to install pdo, and then pecl install pdo_mysql (for instance), to install the PDO database driver.
您还可以使用peclinstallpdo来安装 PDO的,然后使用 pecl install pdo_mysql来安装PDO数据库驱动程序。
The other value in using the abstraction layers of the PEAR DB module and PDO is that you can use the? Operator in your SQL statements.
使用PEARDB模块和pdo抽象层的另一个价值在于您可以在sql语句中使用?操作符。
In addition to setting the error code, PDO will throw a PDOException and set its properties to reflect the error code and error information.
除了设置错误代码以外,PDO还将抛出一个PDOException,并设置其属性,以反映错误代码和错误信息。
In addition to setting the error code, PDO will throw a PDOException and set its properties to reflect the error code and error information.
除了设置错误代码以外,PDO还将抛出一个PDOException,并设置其属性,以反映错误代码和错误信息。
应用推荐