假如有三位开发人员正在使用代码段基址,而且他们使用的是本地的数据库。
Imagine that three developers work on the code base and that they each use their local database.
标记为“A”的代码段创建了数据库连接,并从数据库中选择一个集合。
The code section labeled "A" essentially creates a database connection and selects a collection within the database.
下面一段代码确定用户是否为新用户,如果用户ID已存在,那么从数据库中选择用户ID,否则,将用户ID添加到数据库。
The next section of code determines if the user is new or not, and either selects the user's ID from the database if they already exist, or adds it to the database if they do not.
QueryOpen代理的以下LotusScript代码段执行对approver数据库的查找。
The following LotusScript code fragment of the QueryOpen agent performs a lookup to the approver database. It populates the RETENTION_ERRMSG field if the approver is no longer found.
他建立了一个程序来搜索46个美国州,然后在MySpace数据库服务器表面的成员页面跑了一段代码。
He set up the program to search the lists for 46 U.S. states and ran the code on the MySpace database servers housing member profiles.
在给出答案之前,我编写了一段简单的客户端代码,用于将一个或两个实体保持到数据库中。
Before answering that, I write some simple client code to persist one or two entities to a database.
第三段加粗的代码用于处理数据库故障转移和连接切换。
The third bold section contains code for handling database failover and connection switching.
这是一段简单的连接到DB 2数据库的JDBC代码。
It is essentially the simple JDBC code to connect to a DB2 database and then to execute a query against it.
本文包含一些代码段示例并提供一个可以下载的示例数据库。
This article includes snippets of code examples and provides an example database that you can download. The example Lotus Notes application includes the following agents
组件可能是一小段代码,比如模块,或者一大段,比如象数据库管理系统一样的独立程序。
Components can be small pieces of code, such as modules, or larger chunks, such a stand-alone programs like database management systems.
组件可能是一小段代码,比如模块,或者一大段,比如象数据库管理系统一样的独立程序。
Components can be small pieces of code, such as modules, or larger chunks, such a stand-alone programs like database management systems.
应用推荐