BigQuery 是 Google Cloud的全代管 PB 級數據分析資料倉儲,不僅具成本效益,還能近乎即時地分析大量資料。BigQuery 無須設定或管理基礎架構,讓您專心使用 GoogleSQL 找出有意義的洞察資料,並透過以量計價和固定費率選項,享有彈性的計費模式。瞭解詳情
使用價值 $300 美元的免費抵免額,開始進行概念驗證
-
取得 Gemini 2.0 Flash Thinking 的存取權
-
每月免費使用 AI API 和 BigQuery 等熱門產品
-
不會自動收費,也不會要求您一定要購買特定方案
繼續探索超過 20 項一律免費的產品
使用超過 20 項實用的免費產品,包括 AI API、VM 和 data warehouse 等。
訓練
訓練與教學課程
採用 BigQuery 的資料倉儲服務快速部署解決方案
使用 BigQuery 部署及使用範例資料倉儲。
訓練
訓練與教學課程
BigQuery 適用於資料倉儲
瞭解如何運用 BigQuery 擷取、轉換資料,並載入至 Google Cloud 的最佳做法。
訓練
訓練與教學課程
使用 Dataproc 上的 PySpark 預先處理 BigQuery 資料
瞭解如何使用 Apache Spark 搭配 Dataproc on Google Cloud建立資料處理管道。在資料科學和資料工程中,從一個儲存位置讀取資料、對資料執行轉換,然後將資料寫入另一個儲存位置,是常見的用途。
訓練
訓練與教學課程
BigQuery For Data Analysis
瞭解如何在 BigQuery 中使用 SQL 查詢、擷取、最佳化、視覺化資料,甚至是建構機器學習模型。
訓練
訓練與教學課程
適用於行銷分析師的 BigQuery
瞭解如何使用 BigQuery 查詢資料,從中取得可重複使用、可擴充且有價值的洞察資訊。
訓練
訓練與教學課程
使用 BigQuery 進行機器學習
在 BigQuery Machine Learning 中測試不同類型的模型,瞭解如何建構優質模型。
用途
用途
將資料倉儲遷移至 BigQuery
瞭解將地端部署資料倉儲轉移至 BigQuery 的模式與建議。
遷移
模式
BigQuery
用途
用途
在 Jupyter 筆記本中以圖表呈現 BigQuery 資料
在 Jupyter 筆記本中使用 BigQuery Python 用戶端程式庫與 pandas,以圖表呈現 BigQuery 範例資料表中的資料。
程式碼範例
程式碼範例
用戶端:建立具有範圍的憑證
使用 Drive 和 BigQuery API 範圍建立憑證。
程式碼範例
程式碼範例
用戶端:使用應用程式預設憑證建立憑證
使用應用程式預設憑證建立 BigQuery 用戶端。
程式碼範例
程式碼範例
用戶端:使用服務帳戶金鑰建立
使用服務帳戶金鑰檔案建立 BigQuery 用戶端。
程式碼範例
程式碼範例
Python 範例
使用 Google Cloud Python 用戶端程式庫處理 BigQuery
程式碼範例
程式碼範例
Node.js 範例
適用於 BigQuery 的 Node.js 用戶端程式庫範例
程式碼範例
程式碼範例
C# 簡單範例
簡單的 C# 程式和程式碼片段,可與 BigQuery 互動
程式碼範例
程式碼範例
在 App Engine 上使用 Java 8 的 BigQuery 和 Cloud Monitoring
這個 API 展示說明如何執行 App Engine 標準環境應用程式,並依附 BigQuery 和 Cloud Monitoring。
程式碼範例
程式碼範例
所有範例
瀏覽所有 BigQuery 範例
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eBigQuery is a fully managed, petabyte-scale data warehouse service by Google Cloud, designed for running real-time analytics on massive datasets.\u003c/p\u003e\n"],["\u003cp\u003eIt offers flexible pricing models, including on-demand and flat-rate options, allowing users to optimize costs based on their needs.\u003c/p\u003e\n"],["\u003cp\u003eBigQuery provides comprehensive documentation and guides for various tasks, including quickstarts, table management, data loading, and machine learning integration.\u003c/p\u003e\n"],["\u003cp\u003eResources are available for users, covering topics like pricing, release notes, locations, cost control, troubleshooting, and support.\u003c/p\u003e\n"],["\u003cp\u003eTraining, use cases, and code samples are provided to assist users with data warehousing, data analysis, machine learning, and migrating data warehouses to BigQuery, along with showcasing code for various client-side integrations.\u003c/p\u003e\n"]]],[],null,["# BigQuery documentation\n======================\n\n[Read product documentation](/bigquery/docs/introduction)\nBigQuery is Google Cloud's fully managed, petabyte-scale, and\ncost-effective analytics data warehouse that lets you run analytics over\nvast amounts of data in near real time. With BigQuery, there's\nno infrastructure to set up or manage, letting you focus on finding meaningful\ninsights using GoogleSQL and taking advantage of flexible pricing models\nacross on-demand and flat-rate options.\n[Learn more](/bigquery/docs/introduction)\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n\n Quickstarts:\n [Console](/bigquery/docs/quickstarts/query-public-dataset-console),\n\n [Command line](/bigquery/docs/quickstarts/load-data-bq),\n or\n [Client libraries](/bigquery/docs/quickstarts/quickstart-client-libraries)\n\n\n-\n\n [Creating and using tables](/bigquery/docs/tables)\n\n-\n\n [Introduction to partitioned tables](/bigquery/docs/partitioned-tables)\n\n-\n\n [Introduction to BigQuery ML](/bigquery/docs/bqml-introduction)\n\n-\n\n [Predefined roles and permissions](/bigquery/docs/access-control)\n\n-\n\n [Introduction to loading data](/bigquery/docs/loading-data)\n\n-\n\n [Loading CSV data from Cloud Storage](/bigquery/docs/loading-data-cloud-storage-csv)\n\n-\n\n [Exporting table data](/bigquery/docs/exporting-data)\n\n-\n\n [Create machine learning models in BigQuery ML](/bigquery/docs/create-machine-learning-model)\n\n-\n\n [Querying external data sources](/bigquery/external-data-sources)\n\n-\n\n [Introduction to vector search](/bigquery/docs/vector-search-intro)\n\nfind_in_page\n\n### Reference\n\n-\n\n [Functions in GoogleSQL](/bigquery/docs/reference/standard-sql/functions-all)\n\n-\n\n [Operators in GoogleSQL](/bigquery/docs/reference/standard-sql/operators)\n\n-\n\n [Conditional expressions in GoogleSQL](/bigquery/docs/reference/standard-sql/conditional_expressions)\n\n-\n\n [Date functions in GoogleSQL](/bigquery/docs/reference/standard-sql/date_functions)\n\n-\n\n [Query syntax in GoogleSQL](/bigquery/docs/reference/standard-sql/query-syntax)\n\n-\n\n [String functions in GoogleSQL](/bigquery/docs/reference/standard-sql/string_functions)\n\n-\n\n [Using the bq command-line tool](/bigquery/docs/bq-command-line-tool)\n\n-\n\n [End-to-end journey for machine learning models](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-e2e-journey)\n\n-\n\n [BigQuery API Client Libraries](/bigquery/docs/reference/libraries)\n\n-\n\n [Creating and training models](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create)\n\n-\n\n [Public datasets](/bigquery/public-data)\n\n-\n\n [Feature preprocessing](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-preprocess-overview)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/bigquery/pricing)\n\n-\n\n [Release notes](/bigquery/docs/release-notes)\n\n-\n\n [Locations](/bigquery/docs/locations)\n\n-\n\n [Getting support](/bigquery/docs/getting-support)\n\n-\n\n [Quotas and limits](/bigquery/quotas)\n\n-\n\n [Controlling costs](/bigquery/docs/controlling-costs)\n\n-\n\n [Creating custom cost controls](/bigquery/docs/custom-quotas)\n\n-\n\n [Troubleshooting BigQuery quota errors](/bigquery/docs/troubleshoot-quotas)\n\n-\n\n [Billing questions](/bigquery/docs/billing-questions)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Data Warehouse with BigQuery Jump Start Solution\n\n\nDeploy and use a sample data warehouse with BigQuery.\n\n\n[Learn more](https://cloud.google.com/architecture/big-data-analytics/data-warehouse) \nTraining \nTraining and tutorials\n\n### BigQuery for Data Warehousing\n\n\nLearn best practices for extracting, transforming, and loading your data into Google Cloud with BigQuery.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/679) \nTraining \nTraining and tutorials\n\n### Preprocessing BigQuery Data with PySpark on Dataproc\n\n\nLearn to create a data processing pipeline using Apache Spark with Dataproc on Google Cloud. It is a common use case in data science and data engineering to read data from one storage location, perform transformations on it and write it into another storage location.\n\n\n[Learn more](https://codelabs.developers.google.com/codelabs/pyspark-bigquery/) \nTraining \nTraining and tutorials\n\n### BigQuery For Data Analysis\n\n\nLearn how to query, ingest, optimize, visualize, and even build machine learning models in SQL inside of BigQuery.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/865) \nTraining \nTraining and tutorials\n\n### BigQuery for Marketing Analysts\n\n\nGet repeatable, scalable, and valuable insights into your data by learning how to query it using BigQuery.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/678) \nTraining \nTraining and tutorials\n\n### BigQuery for Machine Learning\n\n\nExperiment with different model types in BigQuery Machine Learning, and learn what makes a good model.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/680) \nUse case \nUse cases\n\n### Migrating data warehouses to BigQuery\n\n\nLearn patterns and recommendations for transitioning your on-premises data warehouse to BigQuery.\n\nMigration Patterns BigQuery\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/migration/dw2bq/dw-bq-migration-overview) \nUse case \nUse cases\n\n### Visualizing BigQuery data in a Jupyter notebook\n\n\nUse the BigQuery Python client library and Pandas in a Jupyter notebook to visualize data in a BigQuery sample table.\n\n\n[Learn more](/bigquery/docs/visualize-jupyter) \nCode sample \nCode Samples\n\n### Client: Create credentials with scopes\n\n\nCreate credentials with Drive and BigQuery API scopes.\n\n\n[Get started](/bigquery/docs/samples/bigquery-auth-drive-scope) \nCode sample \nCode Samples\n\n### Client: Create credentials with application default credentials\n\n\nCreate a BigQuery client using application default credentials.\n\n\n[Get started](/bigquery/docs/samples/bigquery-client-default-credentials) \nCode sample \nCode Samples\n\n### Client: Create with service account key\n\n\nCreate a BigQuery client using a service account key file.\n\n\n[Get started](/bigquery/docs/samples/bigquery-client-json-credentials) \nCode sample \nCode Samples\n\n### Python samples\n\n\nWorking with BigQuery with the Google Cloud Python client library\n\n\n[Open GitHub\narrow_forward](https://github.com/googleapis/python-bigquery/tree/main/samples) \nCode sample \nCode Samples\n\n### Node.js samples\n\n\nSamples for the Node.js client library sfor BigQuery\n\n\n[Open GitHub\narrow_forward](https://github.com/googleapis/nodejs-bigquery/tree/main/samples) \nCode sample \nCode Samples\n\n### C# simple sample\n\n\nA simple C# program and code snippets for interacting with BigQuery\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/bigquery/api) \nCode sample \nCode Samples\n\n### BigQuery and Cloud Monitoring on App Engine with Java 8\n\n\nThis API Showcase demonstrates how to run an App Engine standard environment application with dependencies on both BigQuery and Cloud Monitoring.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/appengine-java8/bigquery) \nCode sample \nCode Samples\n\n### All samples\n\n\nBrowse all samples for BigQuery\n\n\n[Get started](/bigquery/docs/samples)\n\nRelated videos\n--------------\n\n### Try BigQuery for yourself\n\nCreate an account to evaluate how our products perform in real-world scenarios. \nNew customers also get $300 in free credits to run, test, and deploy workloads. \n[Try BigQuery free](https://console.cloud.google.com/freetrial)"]]