这允许将数据写入数据库,如清单11所示。
迄今为止的示例都侧重于读取数据,而不是写入数据。
So far, the examples have focused on reading data, not writing data.
'w '表示要向文件写入数据,并截断以前的内容。
'w' indicates that you want to write data to the file, truncating the previous contents.
DAS的作用是从数据源检索数据以及向其中写入数据。
The role of a DAS is to retrieve and write data to and from a data source.
一种会话复制的方法是序列化会话内容并将它写入数据库。
One approach for session replication is simply to serialize the session contents and write it to a database.
问题:—因为数据库将超过它的磁盘限额而不能写入数据库。
Problem: - Unable to write to database because database would exceed its disk quota.
'a '表示要向文件写入数据,但是添加到当前内容尾部。
'a' indicates that you want to write data to the file, appending to the end.
后者随后用于将PurchaseOrder对象实例写入数据库。
The latter is then used to write the PurchaseOrder object instance to the database.
随着插件、主题和其他配置的逐渐添加,会有更多的数据被写入数据库。
As you add plug-ins, themes, and other configuration tweaks, more data will be written to the database.
第二,使用这种技术读取和写入数据的时间比较长,因为您必须访问多个表。
Second, it takes longer to read and write data using this technique because you have to access multiple tables.
显而易见,这种方式也可以被用来检查写入数据(比如日志事务)的有效性。
Somewhat obviously, they can be used to check the validity of a block of data such as a journal transaction.
清单4和清单5显示了对循环缓冲区写入数据并且将其内容转储到文件的示例。
Listing 4 and Listing 5 show samples of writing the data to a ring buffer and dumping its contents to file.
这些操作的示例包括创建文件、在文件中写入数据或检查特定的文件是否存在。
Example operations include creating a file, writing to a file, or checking if a specific file exists.
写入数据并将其存入XML的操作是无法分开的,因此再多的讨论也无济于事。
The act of writing the data and putting it into XML can't be separated, so much of this discussion just doesn't apply.
任何进程都可以向共享内存区域写入数据,并且数据可以由其他进程读取或修改。
Any process can write data to a Shared memory region, and the data are readable and modified by other processes.
这篇文章讨论了在Python程序中如何从文件读取数据和写入数据到文件中。
This article discussed how to read and write data to a file from a Python program.
transformInto方法用于写入数据,并传入以下类型之一来写入输出
The transformInto method is used for writing data and one of the following types is passed in to write the output
此功能减少了从数据集中获得值或将值写入数据集所需要编写的代码的数量。
This feature reduces the amount of code you need to write to get a value out of or into a DataSet.
在此模式中,一个应用程序将数据写入数据库,另一个应用程序从该数据库中读取数据。
In this case, one application writes data to a database, while the other applications read from the database.
当每个线程第一次尝试写入数据时,它会尝试寻找一个空的内存槽位,并将其标记为忙碌。
As each thread tries to write data for the first time, it tries to find an empty slot of the memory and marks it as busy.
流程活动从变量中读取数据以及向变量中写入数据,类似于在BPEL活动中的操作。
The process activities read and write data to and from variables, similar to how it is done in a BPEL activity.
但有一点重要差别:在写入数据后,需要把用户重定向到提交评论时正在阅读的post。
But there will be an important difference: After the data is written, we need to redirect the user to the post he was reading when he submitted the comment.
(请注意,这里所说的“只读”是指数据一经写入数据仓库,后续的读取者就不能修改它)。
(Note that by "read-only", we mean that once data is written to the data warehouse, that data is not modified by subsequent readers).
WorkplaceFormsViewer对在本地文件系统上写入数据的位置有限制。
Workplace Forms Viewer limits where you can write data on the local file system.
如果我们想写入数据库外部的一个文件,或者发送一个消息队列上的审计记录,又该如何做呢?
What if we want to write to a file outside the database or send the auditing record on a message queue?
这意味着当多个进程和线程可以在同一时间从同一数据库读取数据,但只有一个可以写入数据。
This means that while multiple processes and threads can read from the same database at the same time, only one is able to write.
这个模型有趣的地方在于允许多个线程同时访问相同数据,但同一时刻只允许一个线程写入数据。
What's interesting with this model is that multiple readers are permitted access to the data at one time, but only one writer.
可以用file对象读取数据、写入数据或把数据添加到文件,以及处理二进制或文本数据。
You can use the file object to read data, to write data, to append data to a file, and to work with either binary or textual data.
为了向数据库写入数据,您必须创建(或修改)Row对象,然后向数据库写入那个Row对象。
In order to write to the database, you have to create (or modify) a Row object, and then write that Row object to the database.
应用推荐