Listing 3: Using a database handle.
清单3:使用数据库句柄。
The file starts with getting the database handle, which it stores in a global variable.
文件首先得到数据库句柄,句柄保存在一个全局变量中。
The basic concept is to have a master database handle transactional queries while slaves handle SELECT queries.
基本的原理是让主数据库处理事务性查询,而从数据库处理SELECT查询。
The errstr method returns a message for an SQLCODE associated with a Perl DBI database handle or statement handle.
errstr方法返回与某个PerlDBI数据库句柄或语句句柄相关的SQLCODE的消息。
In order to return the SQLCODE associated with a Perl DBI database handle or statement handle, you can call the err method.
为了返回与某个PerlDBI数据库句柄或语句句柄相关的SQLCODE,可以调用err方法。
In order to return the SQLSTATE associated with a Perl DBI database handle or statement handle, you can invoke the state method.
为了返回与某个PerlDBI数据库句柄或语句句柄相关的SQLSTATE,可以调用state方法。
If a database supports duplicate records, then you can use a database handle to retrieve only the first record in a set of duplicate records.
如果数据库支持多重记录,你可以通过数据库找回多重记录集中的第一条记录。
The DBI module automatically loads the DBD::DB2 driver when you create a database handle using the DBI->connect statement with the following syntax
当使用DBI->connect语句(语法如下)来创建一个数据库句柄 时,DBI模块会自动加载DBD::DB2驱动程序。
Getting the session is the most important part of this exercise; the code in listing 2 shows how to get the session, the database handle, and the list of views and folders.
获取会话是本练习中最重要的部分;清单2中的代码展示了如何获取会话、数据库句柄以及视图和文件夹列表。
To make it easier on yourself, first create a helper function called build_answers that, when given a database handle and a poll ID, outputs the XML for all the answers to that poll (see Listing 4).
为了简单起见,首先创建一个名为build_answers的helper函数,当给定一个数据库句柄或调查ID后,该函数会输出该调查所有答案的XML(参见清单4)。
If all the databases for all the features are on one database server, ensure that it can handle at least 50 connections.
如果所有特性的数据库都位于一个数据库服务器上,那么确保它可以处理至少50个连接。
Certain database types and configurations can handle some of this effort, but in most cases the solution boils down to how you design your code and transaction processing.
某些数据库类型和配置可以处理一些这种工作,但在大多数情况下,解决方案最终归结为如何设计代码和事务处理。
However, it must be taken into account what the database can handle without a transaction timeout or a transaction log full failure.
但是,必须考虑到在不出现事务超时或事务日志写满的情况下数据库能够处理的操作量。
Instead, you get the database engine to handle the process and then report back the summary rather than the raw data.
相反,您可以使用数据库引擎来处理这个过程,然后报告汇总的信息,而不是原始数据。
In any event, the mock implementation should definitely not try to handle every possible stock symbol or access a database with real-time data.
在任何情况下,模拟实现肯定都不应该试图处理每个可能的股票代码或访问具有实时数据的数据库。
As the amount of data increases, we need to scale the database to handle new tenants.
随数据量的增多,我们需要扩展数据库以处理新的承租者。
This routine checks if the binding handle passed with the routine has an entry name in the name service database.
这个例程检查传递的绑定句柄在名称服务数据库中是否有相应的条目名称。
If the script successfully connects to the database, it simply returns the database connection handle to the caller.
如果该脚本成功地连接到数据库,那么只需向调用者返回数据库连接句柄。
The frequency of service requests against the consolidated target is only determined by the ability of the target database and the information service enablement component to handle those requests.
针对整合目标的服务请求的频率仅由目标数据库和信息服务支持组件处理这些请求的能力决定。
The connection handle resource given when creating a database connection is a necessary parameter, along with the query that needs to be run.
创建数据库连接时提供的连接处理资源是必要的参数,随需要运行的查询一起使用。
This routine is used to get the name service entry from the name service database, given a binding handle.
这个例程用于根据给定的绑定句柄从名称服务数据库获取名称服务条目。
They do offer fascinating possibilities, for instance writing/reading a file handle could write/read directly to a database, or send an e-mail when you close the file.
但它确实能够让人神往,例如,通过写/读文件句柄,可以直接写/读数据库,或者在关闭文件时发送一封电子邮件。
In other words, the longer your application is in the database, the less concurrency the application can handle.
换句话说,应用程序在数据库中所处的时间越长,应用程序能处理的并发性就越低。
When limits are exceeded the database will begin rejecting reads and writes and the developer must handle this programmatically through exception handling as suggested by Microsoft.
当超出限制的时候,数据库就会开始拒绝读写,根据微软的建议,开发者必须通过通过异常处理以编程的方式处理这种情况。
BSUs allocate memory for the instance and database, intercept and handle signals, and handle exceptions sent to DB2.
BSU为实例和数据库分配内存,拦截和处理信号,并处理发送到DB2的异常。
Again, the goal is to reduce the time spent in the database, thereby increasing the overall database concurrency and hence the application's ability to handle a larger concurrent user load.
再次,其目标是减少在数据库中花费的时间,从而减少数据库的总体并发性,以及应用程序处理较大并发用户负载的能力。
Once we have a fully bound handle to contact the endpoint database, the protocol versions of the given interface are checked for compatibility with that of the server's.
有了连接端点数据库所需的完全绑定句柄之后,检查接口的协议版本与服务器协议版本的兼容性。
So if you need your project to successfully handle UI, database, or architecture risks, your developers must have those skills.
所以,如果你的项目需要成功地解决UI、数据库或架构风险,开发者必须要掌握相应的技能。
Since most database layers support prepared statements that handle this risk much better, turning this off will again remove an annoying performance problem.
由于大部分数据库层支持能更好地处理该风险的准备语句,禁用该设置会再次消除这个烦人的性能问题。
Since most database layers support prepared statements that handle this risk much better, turning this off will again remove an annoying performance problem.
由于大部分数据库层支持能更好地处理该风险的准备语句,禁用该设置会再次消除这个烦人的性能问题。
应用推荐