Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Inserting data to a table

BigQuery allows the insertion of individual rows into a table. For this example, we will start by creating a blank campaign impression table and then use a query to insert individual rows into a table:

  1. Find the testdataset dataset. If you do not have this dataset, see step 1 and step 2 in the Creating a Table section.
  2. Click on the plus sign next to the testdataset in the left-hand-side navigation. You will be prompted to select your table options. Under Source Data, select Create empty table.
  3. Give your table a name: testtable.
  4. Under Schema, name the first column date, a type of DATE, and leave the Mode as NULLABLE.
  5. Click on Add Field, give the second column a name of campaign, leave the type as STRING, and leave ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content