MongoDB の SQL
MongoDB および Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. では、データの操作やその他の操作を行うために、JavaScript で mongo シェル用のスクリプトを記述します。 主に SQL でデータをクエリする開発者にとっては、MongoDB または Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. コレクションでも SQL を利用できると便利です。 DataGrip は SQL クエリを JavaScript に変換します。
SQL の JavaScript バージョンを表示するには、クエリを右クリックして JS スクリプトの表示 を選択します。
現在の実装では、SELECT クエリと次のクエリがサポートされています:
JOIN、WHERE、GROUP BY、HAVING、ORDER BY、LIMIT、OFFSET
SQL クエリの JavaScript 翻訳を参照する
クエリを右クリックして、 JS スクリプトの表示 を選択します。 JavaScript コードをクリップボードにコピーするには、 JS スクリプトをクリップボードにコピー をクリックします。
JS スクリプトのプレビュー からスクリプトを変更して実行できます。


データ型
DataGrip は、次のデータ型をサポートしています:
文字列、整数、浮動小数点数、ブール値
NULL、NAN、INFINITY
配列(
[1, 2, 3])とマップ ({a: 1, b: 2, c: 3})
配列とマップには任意の式を含めることができます。
文字列リテラルは、一重引用符または二重引用符で使用できます。
引用符なしで列名を記述するか、アクサングラーブ(` )を使用します。
オブジェクトコンストラクター
次のオブジェクトコンストラクターを使用できます: BinData、 HexData、 UUID、 MD5、 ObjectID、 日付、 ISODate、 コード、 DBRef、 RegExp、 NumberInt、 NumberLong、 NumberDecimal、 Timestamp、 MinKey、 MaxKey
新規 キーワードは使用しても省略しても構いません。 DataGrip は、MongoDB または Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. クエリに 新規 キーワードを自動的に追加します。 この機能は、 日付() と new Date() の違いにより、 日付 オブジェクトコンストラクターには適用されません。 日付() は現在の日付を文字列として返し、 new Date() は Date オブジェクトとして返します。
関数名が不明な場合、DataGrip は関数名の前に 新規 キーワードがあるかどうかを検索します。 新規 キーワードがある場合、その名前はオブジェクトコンストラクターとして扱われます。 それ以外の場合は、関数呼び出しとして扱われます。 例: 次のクエリ:
次のように翻訳されます:
関数
MongoDB および Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. のすべての集計パイプライン演算子(マップ、 reduce、 filter、 let を除く)を使用できます。 また、COUNT(*) は使用できますが、COUNT (expression) はまだサポートされていません。
MongoDB および Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. では、一部の関数で名前付き引数が必要です。 名前付き引数を使用するには、名前付きパラメーターに PostgreSQL のような構文(例: =戻り値のラップダイアログ または := )を使用してください。 パラメーター化された関数に名前を指定しないとエラーが発生します。 dateToString 関数の次の例を参照してください。
docs.mongodb.com の集約パイプラインオペレーター(英語)で名前付きパラメーターをサポートするすべてのパイプライン演算子のリストを確認できます。
制限
SQL と MongoDB および Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. では集計関数のアプローチが異なるため、AVG、SUM、MIN、MAX などの集計関数を非集計として使用することはできません。 例:
SELECT MAX(1,2,3)は機能しません。MongoDB および Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. では、
AVG、SUM、MIN、MAXのような関数は集計・非集計の両方として扱われる場合があります。 それらはグループブロック内に配置されている場合は集計として扱われます。 それ以外の場合、非集計となります。SQL では、そのような依存関係はなく、GROUP BY 句なしで集計関数を使用できます(たとえば、
SELECT AVG(x) FROM t)。他の集計関数内で集計関数を呼び出すことはできません。
演算子
現在、次の機能がサポートされています:
オペランド:
=、==、戻り値のラップダイアログ=、<=、戻り値のラップダイアログ、<、<>、!=、+、-、/、*、%、AND、OR、NOT、LIKE、NOT LIKE、IS、IS NOT、IN、NOT IN、BETWEEN、NOT BETWEENLIKE演算子にはワイルドカードを使用できます。 これらのワイルドカードは、MongoDB または Amazon DocumentDB"}]} as per specified instructions. The translation maintains the name Amazon DocumentDB as-is because it is the official product name and should not be localized. QA issue is thus resolved by verifying correct handling. No further translation or change is needed. JSON output is valid and as requested. If you have other strings, I can translate those as well. Thank you! If you have more strings, please send them. JSON is complete and valid. If there are more strings, please send them for translation. JSON output is now provided accordingly. If more strings exist, please provide them. Thank you! JSON is complete and valid. If more strings are required, please send them. Thank you so much! If there are further strings, kindly provide. JSON is now given as required. If further strings exist, please provide for processing. Thank you so much! If further strings, please send. JSON is now valid and official. If you have more strings, please send. Thank you, JSON is now as requested. If more strings exist, please send them for translation. Thank you! If further strings exist, please provide. JSON now valid. If further strings exist, please provide. JSON is now valid as required. If there are further strings, please send them for translation. JSON now as required. JSON provided as requested. If you have more strings, please provide. Thank you! JSON provided as required. If there are more strings, please send for translation. JSON now provided as requested. Thank you so much! If there are more strings, please provide. Thank you for your request! JSON given as required. で有効な正規表現に変換されます。

SQL 句
選択
選択 クエリでは次の機能がサポートされています。
オプション:
DISTINCT、ALL集計関数と非集計関数。
点線の名前を使用した埋め込みフィールドへのアクセス。 次の例を考えてみましょう。


制限
列にはエイリアスが含まれる場合があります。 エイリアスにピリオド(
.)を含めることはできません。
FROM
テーブルにはエイリアスを使用できます。
ネストされた
選択ステートメントにはエイリアスを使用する必要があります。ネストされた
選択クエリを使用できます。 例: 次のクエリは有効です。

制限
エイリアスにピリオド(
.)を含めることはできません。
JOIN
JOIN(INNER JOIN) とLEFT JOIN(LEFT OUTER JOIN) のみがサポートされます。ON条件のみがサポートされます。ON部分には条件が 1 つだけあります。 次のクエリはエラーになります。

ON条件では、==または=演算子を使用できます。複数の
JOIN句がサポートされています。
制限
USINGはサポートされていません。選択ステートメントをJOIN句の 2 番目の引数として使用することはできません。JOIN句では、テーブル名とエイリアスが重複してはなりません。
WHERE
LIKEおよびNOT LIKEには文字列リテラルが必要です。 次のクエリはエラーになります。

GROUP BY
DataGrip は GROUP BY 句をサポートします。
選択 句には、 GROUP BY 句の式に機能的に依存する式を含めることができます。 列が GROUP BY 句で使用されている場合は、 選択 句で列の埋め込みフィールドを使用できます。


HAVING
DataGrip は HAVING 句をサポートします。


ORDER BY
DataGrip は ORDER BY 句をサポートします。 ORDER BY の代わりに SORT BY を使用できます。


LIMIT
DataGrip は LIMIT 句をサポートします。


OFFSET
DataGrip は OFFSET 句をサポートします。

