If these capabilities are important to your application, then SDO is probably an appropriate choice, using the relational DAS implemented to PDO for relational data source support.
如果这些功能对您的应用程序较为重要,那么SDO也许是您较合适的选择,使用对pdo实施的关系型DAS提供关系型数据源支持。
If the connection succeeds, you will see the message 「Connected」, otherwise, PDO will throw a PDOException explaining why the connection failed.
如果连接成功,您将看到消息「Connected 」,否则,PDO将抛出一个PDOException,解释为什么连接失败。
The ease of use of PDO makes it a natural choice when working directly with databases, and for this very reason is the technology chosen for the Relational DAS implementation provided with SDO.
P DO的易用性使之在直接处理数据库时很自然地成为了首选方法,就因为这一原因,SDO提供的关系型DAS实现也选择了此技术。
Each database driver that implements the PDO interface has the option of exposing additional database-specific features as regular extension functions.
实现pdo接口的每个数据库驱动程序可以选择公开附加的数据库专用特性作为标準扩展功能。
Next, use the PHP PDO extension to connect with the DB2 database and determine if a catalog table row is defined for the catalog id value input in the input form.
接下来,使用PHPPDO扩展连接到DB 2数据库,并判断catalog表中是否为输入表单中输入的catalogid值定义了一行。
It then creates a PDO connection to the MySQL database and formulates a query that returns a list of authors and titles.
随后创建一个到MySQL数据库的PDO连接并形成一个查询,该查询返回一个作者和标题列表。
You「ve installed the PDO core; you need to enable it in your php.ini file for it to take effect.
您已经安装了pdo核心,为了使之生效,需要在php .ini文件中启用它。
In this sample application a PDO object instantiated within the PHP file instantiates the connection with the MySQL database through the MySQL connector.
在这个样例应用程序中,在php文件中实例化的一个pdo对象通过MySQL连接器实例化与MySQL数据库的连接。
You will use the PHP PDO extension to connect to the DB2 database.
您将使用PHPPDO扩展连接到DB 2数据库。
When the script ends or when a connection is about to be closed, if you have an outstanding transaction, PDO will automatically roll it back.
当脚本结束时,或者当一个连接即将被关闭时,如果有一个未完成的事务,那么 PDO将自动回滚该事务。
PDO offers 3 different error handling modes to suit different styles of programming
PDO提供了3种不同的错误处理模式,以满足不同风格的编程
The other change needed in the php.ini file is the definition of the PDO and PDO_INFORMIX extension.
其他需要在php. ini文件进行的更改是PDO和PDO_INFORMIX扩展名的定义。
The final parameter is used for passing additional tuning parameters through to PDO or the underlying driver--more on that shortly. Here」s a short sample script that connects to DB2
最后一个参数用于传递附加的调优参数到PDO或底层驱动程序 —— 后面很快会有更详细的论述。
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。
While this is useful (and important!) information, you might be wondering why I took the time to mention it, when the focus is on using PDO with DB2.
虽然这是有用的(并且也是重要的)信息,但是您可能想知道,为什么我要花时间提到这一点,本文的重点不是结合使用pdo和db2吗?
The output from this command should include both the PDO and the pdo_informix modules.
此命令的输出应该包括PDO和 pdo_informix模块。
Prepared statements are so useful that PDO actually breaks the rule set out in Goal number 4: if the driver doesn't support prepared statements, PDO will emulate them.
预处理语句是如此有用,以致pdo实际上打破了在目标4中设下的规则:如果驱动程序不支持预处理语句,那么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语句中使用?操作符。
PDO is not an abstraction layer like PearDB. PDO is a more like a data access layer which USES a unified API (Application Programming Interface).
PDO并不是类似于PearDB的数据库抽象层,而更像一种采用了统一api(应用编程接口)的数据访问层。
PDO is an acronym for PHP Data Objects. PDO is a lean, consistent way to access databases.
PDO是PHP数据对象的缩写,是一种访问数据库的更便捷、安全的途径。
More information can be found on the What is PDO page .
更多信息可以在什么是PDO网页找到。