BigQuery 服務
您可以透過 BigQuery 服務在 Apps Script 中使用 Google BigQuery API。這個 API 可讓使用者管理 BigQuery 專案、上傳新資料及執行查詢。
參考資料
如需這項服務的詳細資訊,請參閱 BigQuery API 的參考資料說明文件。與 Apps Script 中的所有進階服務一樣,BigQuery 服務會使用與公開 API 相同的物件、方法和參數。詳情請參閱「如何決定方法簽章」。
如要回報問題並尋求其他支援,請參閱 Google Cloud 支援指南。
程式碼範例
以下程式碼範例使用 API 的 第 2 版。
執行查詢
這個範例會查詢每日熱門 Google 搜尋字詞清單。
載入 CSV 資料
這個範例會建立新的資料表,並將 Google 雲端硬碟中的 CSV 檔案載入其中。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["The BigQuery service in Apps Script enables management of BigQuery projects, data uploads, and query execution using the Google BigQuery API."],["This advanced service requires prior enabling before use and leverages the same structure as the public API."],["Sample code is provided demonstrating how to run a query to retrieve Google Search terms and load CSV data into BigQuery."],["Users can consult the Google Cloud support guide for troubleshooting and support related to the BigQuery service."]]],[]]