クエリ文法リファレンス
以下の表に、検索広告 360 クエリ言語の完全な文法リファレンスを示します。
文法リファレンス |
クエリ |
SELECT 句 |
SELECT FIELD_NAME (, FIELD_NAME)* |
FROM 句 |
FROM RESOURCE_NAME |
WHERE 句 |
WHERE CONDITION (AND CONDITION)* |
ORDER BY 句 |
ORDER BY ORDERING (, ORDERING)* |
LIMIT 句 |
LIMIT POSITIVE_INTEGER |
PARAMETERS 句 |
PARAMETERS LITERAL = VALUE (, LITERAL = VALUE)* |
|
フィールド名 |
[a-z] ([a-zA-Z0-9._])* |
リソース名 |
[a-z] ([a-zA-Z_])* |
条件 |
FIELD_NAME OPERATOR VALUE |
注文 |
FIELD_NAME (ASC | DESC)? |
演算子 |
= | != | > | >= | < | <= | IN | NOT IN | LIKE | NOT LIKE | CONTAINS ANY | CONTAINS ALL | CONTAINS NONE | IS NULL | IS NOT NULL | DURING | BETWEEN | REGEXP_MATCH | NOT REGEXP_MATCH |
関数 |
LAST_14_DAYS | LAST_30_DAYS | LAST_7_DAYS | LAST_BUSINESS_WEEK | LAST_MONTH | LAST_WEEK_MON_SUN | LAST_WEEK_SUN_SAT | THIS_MONTH | THIS_WEEK_MON_TODAY | THIS_WEEK_SUN_TODAY | TODAY | YESTERDAY |
値 |
LITERAL | LITERAL_LIST | NUMBER | NUMBER_LIST | STRING | STRING_LIST | FUNCTION |
正の整数 |
[1-9] ([0-9])* |
数値 |
-? [0-9]+ (. [0-9] [0-9]*)? |
文字列 |
(' Char* ') | (" Char* ") |
リテラル |
[a-zA-Z0-9_]* |
文字列リスト |
( STRING (, STRING)* ) |
リテラルリスト |
( LITERAL (, LITERAL)* ) |
整数 |
( NUMBER (, NUMBER)* ) |
凡例:
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-24 UTC。
[null,null,["最終更新日 2024-11-24 UTC。"],[[["This document provides a comprehensive grammar reference for the Search Ads 360 Query Language."],["The language allows users to query data using a structured syntax including clauses like `SELECT`, `FROM`, `WHERE`, `ORDER BY`, `LIMIT`, and `PARAMETERS`."],["Various data types like numbers, strings, and lists are supported within the query structure for filtering and data retrieval."],["Specific operators and functions enable detailed data manipulation, such as date ranges (`LAST_30_DAYS`) and pattern matching (`REGEXP_MATCH`)."],["The provided table details the syntax and components of the query language, along with explanations of special characters and usage examples."]]],["The Search Ads 360 Query Language grammar includes clauses like `SELECT`, `FROM`, `WHERE`, `ORDER BY`, `LIMIT`, and `PARAMETERS`. It defines field, resource, and operator types, allowing queries to select data, specify the source, filter results, order them, and limit the output. Conditions are built with `FIELD_NAME`, `OPERATOR`, and `VALUE`. Values can be literals, numbers, strings, or lists. The grammar includes operators like `=`, `!=`, `\u003e`, `IN`, `LIKE`, and `REGEXP_MATCH` for comparisons.\n"]]