From b8383c03127aef9ece68c1dc476b4bf6a915943f Mon Sep 17 00:00:00 2001 From: ravind Date: Tue, 12 Apr 2016 12:40:11 -0400 Subject: [PATCH] DOCS-7624: Add Note about _id in SQL vs Mongo --- source/reference/sql-comparison.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/reference/sql-comparison.txt b/source/reference/sql-comparison.txt index 4f108e22383..03f1b53f996 100644 --- a/source/reference/sql-comparison.txt +++ b/source/reference/sql-comparison.txt @@ -85,6 +85,14 @@ Select The following table presents the various SQL statements related to reading records from tables and the corresponding MongoDB statements. +.. note:: + + The :method:`~db.collection.find()` method always includes the ``_id`` + field in the returned documents unless specifically excluded through + :ref:`projection`. Some of the SQL queries below may include an + ``_id`` field to reflect this, even if the field is not included in the + corresponding :method:`~db.collection.find()` query. + .. include:: /includes/table/sql-to-mongo-select-examples.rst For more information, see