翻译或纠错本页面
- Reference >
- Database Commands >
- Query and Write Operation Commands
Query and Write Operation Commands¶
注解
For details on specific commands, including syntax and examples, click on the specific command to go to its reference page.
Name | Description |
---|---|
find | Selects documents in a collection. |
insert | Inserts one or more documents. |
update | Updates one or more documents. |
delete | Deletes one or more documents. |
findAndModify | Returns and modifies a single document. |
getMore | Returns batches of documents currently pointed to by the cursor. |
getLastError | Returns the success status of the last operation. |
getPrevError | Returns status document containing all errors since the last resetError command. |
resetError | Resets the last error status. |
eval | Deprecated. Runs a JavaScript function on the database server. |
parallelCollectionScan | Lets applications use multiple parallel cursors when reading documents from a collection. |